From 4000e1b9dc6440ef708cb9c56df88b1b1cc7fc56 Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 15 Jan 2024 21:02:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20up=E8=AE=BE=E7=BD=AE=E5=88=86=E7=BB=84?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=97=A5=E9=97=B4=E6=A8=A1=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E9=A2=9C=E8=89=B2=E4=B8=8D=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 09dc3184..4e1482d7 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -113,6 +113,13 @@ class MyApp extends StatelessWidget { ? darkColorScheme : lightColorScheme, useMaterial3: true, + snackBarTheme: SnackBarThemeData( + actionTextColor: lightColorScheme.primary, + backgroundColor: lightColorScheme.secondaryContainer, + closeIconColor: lightColorScheme.secondary, + contentTextStyle: TextStyle(color: lightColorScheme.secondary), + elevation: 20, + ), pageTransitionsTheme: const PageTransitionsTheme( builders: { TargetPlatform.android: ZoomPageTransitionsBuilder( @@ -127,10 +134,11 @@ class MyApp extends StatelessWidget { ? lightColorScheme : darkColorScheme, useMaterial3: true, - snackBarTheme: const SnackBarThemeData( - actionTextColor: Colors.white, - backgroundColor: Colors.black, - contentTextStyle: TextStyle(color: Colors.white), + snackBarTheme: SnackBarThemeData( + actionTextColor: darkColorScheme.primary, + backgroundColor: darkColorScheme.secondaryContainer, + closeIconColor: darkColorScheme.secondary, + contentTextStyle: TextStyle(color: darkColorScheme.secondary), elevation: 20, ), ),