opt: navigationbar color

This commit is contained in:
bggRGjQaUbCoE
2024-08-26 18:19:30 +08:00
parent d5c2bd3e8a
commit 2fde055748

View File

@@ -162,6 +162,10 @@ class MyApp extends StatelessWidget {
? darkColorScheme ? darkColorScheme
: lightColorScheme, : lightColorScheme,
useMaterial3: true, useMaterial3: true,
navigationBarTheme: NavigationBarThemeData(
surfaceTintColor: (lightDynamic != null && isDynamicColor)
? lightColorScheme.surfaceTint
: lightColorScheme.surfaceContainer),
snackBarTheme: SnackBarThemeData( snackBarTheme: SnackBarThemeData(
actionTextColor: lightColorScheme.primary, actionTextColor: lightColorScheme.primary,
backgroundColor: lightColorScheme.secondaryContainer, backgroundColor: lightColorScheme.secondaryContainer,
@@ -183,6 +187,10 @@ class MyApp extends StatelessWidget {
? lightColorScheme ? lightColorScheme
: darkColorScheme, : darkColorScheme,
useMaterial3: true, useMaterial3: true,
navigationBarTheme: NavigationBarThemeData(
surfaceTintColor: (darkDynamic != null && isDynamicColor)
? darkColorScheme.surfaceTint
: darkColorScheme.surfaceContainer),
snackBarTheme: SnackBarThemeData( snackBarTheme: SnackBarThemeData(
actionTextColor: darkColorScheme.primary, actionTextColor: darkColorScheme.primary,
backgroundColor: darkColorScheme.secondaryContainer, backgroundColor: darkColorScheme.secondaryContainer,