限制指定useMaterial3: false
This commit is contained in:
parent
b4649ff3ee
commit
6ea9cf34e9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue