Dark mode always enabled
This commit is contained in:
@@ -55,13 +55,13 @@ class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
|||||||
theme = MihTheme();
|
theme = MihTheme();
|
||||||
var systemTheme =
|
var systemTheme =
|
||||||
SchedulerBinding.instance.platformDispatcher.platformBrightness;
|
SchedulerBinding.instance.platformDispatcher.platformBrightness;
|
||||||
bool isDarkMode = systemTheme == Brightness.dark;
|
// bool isDarkMode = systemTheme == Brightness.dark;
|
||||||
if (isDarkMode) {
|
// if (isDarkMode) {
|
||||||
theme.mode = "Dark";
|
// theme.mode = "Dark";
|
||||||
} else {
|
// } else {
|
||||||
theme.mode = "Light";
|
// theme.mode = "Light";
|
||||||
}
|
// }
|
||||||
|
theme.mode = "Dark";
|
||||||
theme.platform = Theme.of(context).platform;
|
theme.platform = Theme.of(context).platform;
|
||||||
super.initState();
|
super.initState();
|
||||||
//doInit();
|
//doInit();
|
||||||
@@ -76,7 +76,7 @@ class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
|||||||
precacheImage(theme.logoFrame(), context);
|
precacheImage(theme.logoFrame(), context);
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: getTitle(),
|
title: getTitle(),
|
||||||
themeMode: ThemeMode.system,
|
themeMode: ThemeMode.dark,
|
||||||
theme: theme.getThemeData(),
|
theme: theme.getThemeData(),
|
||||||
darkTheme: theme.getThemeData(),
|
darkTheme: theme.getThemeData(),
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user