fix: default theme not following system (#1288)

This commit is contained in:
Benjamin Halko 2023-09-20 20:03:15 -07:00
parent 1b6d72661c
commit 6f4866ef63
No known key found for this signature in database
GPG Key ID: 790C70040EB331A0

View File

@ -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,