Skip to content

Commit f31d8af

Browse files
committed
fix: fix brightness not null
1 parent e9b1dc8 commit f31d8af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/app.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ class MyAppView extends StatelessWidget {
3838
useMaterial3: true,
3939
),
4040
darkTheme: ThemeData(
41-
brightness: Brightness.dark,
42-
colorScheme: darkDynamic ?? ColorScheme.fromSwatch(primarySwatch: Colors.blue),
41+
colorScheme: darkDynamic ??
42+
ColorScheme.fromSwatch(
43+
primarySwatch: Colors.blue,
44+
brightness: Brightness.dark,
45+
),
4346
useMaterial3: true,
4447
),
4548
themeMode: state.themeMode,

0 commit comments

Comments
 (0)