fix dark theme menubar

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-03-06 10:55:34 +08:00
parent 0579ba5cfd
commit 3015a23e3d

View File

@ -252,12 +252,7 @@ class MyTheme {
),
),
),
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.blue,
).copyWith(
brightness: Brightness.light,
background: grayBg,
),
colorScheme: ColorScheme.light(primary: Colors.blue, background: grayBg),
).copyWith(
extensions: <ThemeExtension<dynamic>>[
ColorThemeExtension.light,
@ -356,10 +351,8 @@ class MyTheme {
),
),
),
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.blue,
).copyWith(
brightness: Brightness.dark,
colorScheme: ColorScheme.dark(
primary: Colors.blue,
background: Color(0xFF24252B),
),
).copyWith(