Skip to content

Commit

Permalink
fix: default theme not following system (#1288)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Sep 21, 2023
1 parent 1b6d726 commit 6f4866e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/theme/dynamic_theme_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class _DynamicThemeBuilderState extends State<DynamicThemeBuilder> with WidgetsB
4: darkCustomTheme,
5: darkDynamicTheme,
},
fallbackTheme: brightness == Brightness.light ? lightCustomTheme : darkCustomTheme,
fallbackTheme: PlatformDispatcher.instance.platformBrightness == Brightness.light ? lightCustomTheme : darkCustomTheme,
),
builder: (context, theme) => MaterialApp(
debugShowCheckedModeBanner: false,
Expand Down

0 comments on commit 6f4866e

Please sign in to comment.