diff --git a/Frontend/lib/main.dart b/Frontend/lib/main.dart index 28ebb19d..e9c7db51 100644 --- a/Frontend/lib/main.dart +++ b/Frontend/lib/main.dart @@ -54,6 +54,7 @@ class _MzanziInnovationHubState extends State { @override void initState() { + theme = MihTheme(); var systemTheme = SchedulerBinding.instance.platformDispatcher.platformBrightness; bool isDarkMode = systemTheme == Brightness.dark; @@ -64,7 +65,7 @@ class _MzanziInnovationHubState extends State { theme.mode = "Light"; _themeMode = ThemeMode.light; } - theme = MihTheme(); + theme.platform = Theme.of(context).platform; super.initState(); //doInit();