unified scaffold background color

This commit is contained in:
Vadim 2024-05-07 19:36:43 +02:00
parent 5c27f726c5
commit 2a518f0ace
3 changed files with 3 additions and 4 deletions

View file

@ -30,7 +30,8 @@ ThemeData themeFrom(Color primaryColor, Brightness brightness) {
colorScheme: scheme,
appBarTheme: AppBarTheme(
elevation: 4,
color: scheme.surface,
color: scheme.background,
foregroundColor: scheme.onBackground,
surfaceTintColor: scheme.surfaceTint,
),
cardTheme: CardTheme(
@ -58,7 +59,7 @@ ThemeData themeFrom(Color primaryColor, Brightness brightness) {
iconColor: scheme.onSurface,
textColor: scheme.onSurface,
),
scaffoldBackgroundColor: scheme.surface,
scaffoldBackgroundColor: scheme.background,
);
return theme.copyWith(
listTileTheme: ListTileThemeData(

View file

@ -24,7 +24,6 @@ class MeteringScreen extends StatelessWidget {
Widget build(BuildContext context) {
return _InheritedListeners(
child: Scaffold(
backgroundColor: Theme.of(context).colorScheme.background,
body: Column(
children: [
Expanded(

View file

@ -66,7 +66,6 @@ class TimerScreenState extends State<TimerScreen> with TickerProviderStateMixin
listenWhen: (previous, current) => previous.runtimeType != current.runtimeType,
listener: (context, state) => _updateAnimations(state),
child: Scaffold(
backgroundColor: Theme.of(context).colorScheme.background,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,