reverted theme changes

This commit is contained in:
Vadim 2024-05-04 20:14:53 +02:00
parent 231ef0f39c
commit d024dd278b
2 changed files with 3 additions and 2 deletions

View file

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

View file

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