限制指定useMaterial3: false

This commit is contained in:
胡天 2024-04-15 16:40:41 +08:00
parent b4649ff3ee
commit 6ea9cf34e9
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ abstract class Constants {
static Color ratingBG = Colors.yellow[600]!;
static ThemeData lightTheme = ThemeData(
useMaterial3: false,
colorScheme: const ColorScheme.light(
background: lightBG,
primary: lightPrimary,
@ -37,6 +38,7 @@ abstract class Constants {
);
static ThemeData darkTheme = ThemeData(
useMaterial3: false,
colorScheme: const ColorScheme.dark(
background: darkBG,
primary: darkPrimary,