2022-09-02 15:35:25 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class SettingsSection extends StatelessWidget {
|
|
|
|
const SettingsSection({
|
2023-11-11 13:07:32 +01:00
|
|
|
super.key,
|
2022-09-02 15:35:25 +02:00
|
|
|
required this.title,
|
|
|
|
required this.children,
|
2023-11-11 13:07:32 +01:00
|
|
|
});
|
2023-01-30 13:35:06 +01:00
|
|
|
final String title;
|
|
|
|
final List<Widget> children;
|
2022-09-02 15:35:25 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
2022-09-19 10:39:25 +02:00
|
|
|
padding: const EdgeInsets.only(top: 16.0, bottom: 10.0, left: 20.0),
|
2024-02-12 00:22:25 +01:00
|
|
|
child: Text(
|
2022-09-02 15:35:25 +02:00
|
|
|
title,
|
2024-02-12 00:22:25 +01:00
|
|
|
style: TextStyle(
|
|
|
|
color: Theme.of(context).colorScheme.primary,
|
2022-09-02 15:35:25 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: children,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|