2022-09-02 15:35:25 +02:00
|
|
|
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(
|
2022-09-05 04:32:36 +02:00
|
|
|
color: Theme.of(context).colorScheme.primary,
|
2022-09-02 15:35:25 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: children,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|