26 lines
553 B
Dart
26 lines
553 B
Dart
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
class SettingsSection extends StatelessWidget {
|
||
|
|
const SettingsSection(this.title, {super.key});
|
||
|
|
|
||
|
|
final String title;
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return ListTile(
|
||
|
|
title: Text(title),
|
||
|
|
titleTextStyle: Theme.of(context).textTheme.titleSmall,
|
||
|
|
dense: true,
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
class SettingsDivider extends StatelessWidget {
|
||
|
|
const SettingsDivider({super.key});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return const Divider(indent: 16, endIndent: 16);
|
||
|
|
}
|
||
|
|
}
|