Merge pull request #422 from orz12/fix-snackBarTheme-without-light-theme
fix: up设置分组没有日间模式,以及颜色不统一
This commit is contained in:
@ -113,6 +113,13 @@ class MyApp extends StatelessWidget {
|
|||||||
? darkColorScheme
|
? darkColorScheme
|
||||||
: lightColorScheme,
|
: lightColorScheme,
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
|
snackBarTheme: SnackBarThemeData(
|
||||||
|
actionTextColor: lightColorScheme.primary,
|
||||||
|
backgroundColor: lightColorScheme.secondaryContainer,
|
||||||
|
closeIconColor: lightColorScheme.secondary,
|
||||||
|
contentTextStyle: TextStyle(color: lightColorScheme.secondary),
|
||||||
|
elevation: 20,
|
||||||
|
),
|
||||||
pageTransitionsTheme: const PageTransitionsTheme(
|
pageTransitionsTheme: const PageTransitionsTheme(
|
||||||
builders: <TargetPlatform, PageTransitionsBuilder>{
|
builders: <TargetPlatform, PageTransitionsBuilder>{
|
||||||
TargetPlatform.android: ZoomPageTransitionsBuilder(
|
TargetPlatform.android: ZoomPageTransitionsBuilder(
|
||||||
@ -127,10 +134,11 @@ class MyApp extends StatelessWidget {
|
|||||||
? lightColorScheme
|
? lightColorScheme
|
||||||
: darkColorScheme,
|
: darkColorScheme,
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
snackBarTheme: const SnackBarThemeData(
|
snackBarTheme: SnackBarThemeData(
|
||||||
actionTextColor: Colors.white,
|
actionTextColor: darkColorScheme.primary,
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: darkColorScheme.secondaryContainer,
|
||||||
contentTextStyle: TextStyle(color: Colors.white),
|
closeIconColor: darkColorScheme.secondary,
|
||||||
|
contentTextStyle: TextStyle(color: darkColorScheme.secondary),
|
||||||
elevation: 20,
|
elevation: 20,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user