mod: AppBarTheme

This commit is contained in:
guozhigq
2024-11-17 19:56:14 +08:00
parent c3ef35f150
commit 570a073963

View File

@ -224,12 +224,8 @@ class BuildMainApp extends StatelessWidget {
AppBarTheme appBarTheme(ColorScheme colorScheme) {
return AppBarTheme(
backgroundColor: currentThemeValue == ThemeType.dark
? darkColorScheme.surface
: lightColorScheme.surface,
foregroundColor: currentThemeValue == ThemeType.dark
? darkColorScheme.onSurface
: lightColorScheme.onSurface,
backgroundColor: colorScheme.surface,
foregroundColor: colorScheme.onSurface,
elevation: 0,
titleSpacing: 0,
scrolledUnderElevation: 0,