feat: overall UI rework in Settings View (#53)

This commit is contained in:
Alberto Ponces 2022-09-02 14:35:25 +01:00 committed by GitHub
parent 036e8c99b3
commit 4f7b1d4520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 485 additions and 361 deletions

View file

@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
class SettingsSection extends StatelessWidget {
final String title;
final List<Widget> children;
const SettingsSection({
Key? key,
required this.title,
required this.children,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
padding: const EdgeInsets.only(top: 16.0, bottom: 10.0),
child: I18nText(
title,
child: Text(
'',
style: TextStyle(
color: Theme.of(context).colorScheme.secondary,
),
),
),
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: children,
),
],
);
}
}