mod: snackBarTheme darkTheme

This commit is contained in:
guozhigq
2024-01-06 16:51:28 +08:00
parent 7c82193f22
commit 7a71798055
2 changed files with 13 additions and 10 deletions

View File

@ -126,6 +126,12 @@ class MyApp extends StatelessWidget {
? lightColorScheme
: darkColorScheme,
useMaterial3: true,
snackBarTheme: const SnackBarThemeData(
actionTextColor: Colors.white,
backgroundColor: Colors.black,
contentTextStyle: TextStyle(color: Colors.white),
elevation: 20,
),
),
localizationsDelegates: const [
GlobalCupertinoLocalizations.delegate,