From d024dd278bd776fa2032ea26a74debb804a897c4 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sat, 4 May 2024 20:14:53 +0200 Subject: [PATCH] reverted theme changes --- lib/res/theme.dart | 4 ++-- lib/screens/timer/screen_timer.dart | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/res/theme.dart b/lib/res/theme.dart index e787901..52e0e92 100644 --- a/lib/res/theme.dart +++ b/lib/res/theme.dart @@ -30,7 +30,7 @@ ThemeData themeFrom(Color primaryColor, Brightness brightness) { colorScheme: scheme, appBarTheme: AppBarTheme( elevation: 4, - color: scheme.background, + color: scheme.surface, surfaceTintColor: scheme.surfaceTint, ), cardTheme: CardTheme( @@ -58,7 +58,7 @@ ThemeData themeFrom(Color primaryColor, Brightness brightness) { iconColor: scheme.onSurface, textColor: scheme.onSurface, ), - scaffoldBackgroundColor: scheme.background, + scaffoldBackgroundColor: scheme.surface, ); return theme.copyWith( listTileTheme: ListTileThemeData( diff --git a/lib/screens/timer/screen_timer.dart b/lib/screens/timer/screen_timer.dart index 285d8f4..74f2c2e 100644 --- a/lib/screens/timer/screen_timer.dart +++ b/lib/screens/timer/screen_timer.dart @@ -68,6 +68,7 @@ class TimerScreenState extends State 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,