m3_lightmeter/lib/screens/settings/settings_screen.dart

42 lines
1.2 KiB
Dart
Raw 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';
import 'package:lightmeter/res/dimens.dart';
import 'components/caffeine_tile.dart';
import 'components/haptics_tile.dart';
2022-10-30 18:23:06 +00:00
class SettingsScreen extends StatelessWidget {
const SettingsScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
body: CustomScrollView(
slivers: <Widget>[
SliverAppBar(
pinned: true,
2022-10-30 18:59:33 +00:00
leading: null,
2022-10-30 18:23:06 +00:00
expandedHeight: 160.0,
2022-10-30 18:59:33 +00:00
flexibleSpace: FlexibleSpaceBar(
centerTitle: false,
titlePadding: const EdgeInsets.all(Dimens.paddingM),
title: Text(
S.of(context).settings,
style: TextStyle(color: Theme.of(context).colorScheme.onSurface, fontSize: 24),
),
),
2022-10-30 18:23:06 +00:00
actions: [
IconButton(
onPressed: () {},
icon: const Icon(Icons.close),
),
],
),
2022-10-30 18:59:33 +00:00
SliverList(delegate: SliverChildListDelegate([CaffeineListTile(), HapticsListTile()])),
2022-10-30 18:23:06 +00:00
],
),
);
}
}