m3_lightmeter/lib/screens/settings/screen_settings.dart

39 lines
1.2 KiB
Dart
Raw Permalink Normal View History

2022-10-30 18:23:06 +00:00
import 'package:flutter/material.dart';
2022-10-30 18:59:33 +00:00
import 'package:lightmeter/generated/l10n.dart';
2023-03-26 13:06:03 +00:00
import 'package:lightmeter/screens/shared/sliver_screen/screen_sliver.dart';
2022-10-30 18:59:33 +00:00
2023-02-19 16:19:56 +00:00
import 'components/about/widget_settings_section_about.dart';
import 'components/general/widget_settings_section_general.dart';
import 'components/metering/widget_settings_section_metering.dart';
import 'components/theme/widget_settings_section_theme.dart';
2022-10-30 18:23:06 +00:00
class SettingsScreen extends StatelessWidget {
const SettingsScreen({super.key});
@override
Widget build(BuildContext context) {
2023-03-26 13:06:03 +00:00
return SliverScreen(
title: S.of(context).settings,
appBarActions: [
IconButton(
onPressed: Navigator.of(context).pop,
icon: const Icon(Icons.close),
2022-12-17 18:05:50 +00:00
),
2023-03-26 13:06:03 +00:00
],
slivers: [
SliverList(
delegate: SliverChildListDelegate(
<Widget>[
const MeteringSettingsSection(),
const GeneralSettingsSection(),
const ThemeSettingsSection(),
const AboutSettingsSection(),
SizedBox(height: MediaQuery.of(context).padding.bottom),
],
),
),
],
2022-10-30 18:23:06 +00:00
);
}
}