set MIHTheme at start of init
This commit is contained in:
parent
3f325fda66
commit
021f056c14
1 changed files with 2 additions and 1 deletions
|
|
@ -54,6 +54,7 @@ class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
theme = MihTheme();
|
||||||
var systemTheme =
|
var systemTheme =
|
||||||
SchedulerBinding.instance.platformDispatcher.platformBrightness;
|
SchedulerBinding.instance.platformDispatcher.platformBrightness;
|
||||||
bool isDarkMode = systemTheme == Brightness.dark;
|
bool isDarkMode = systemTheme == Brightness.dark;
|
||||||
|
|
@ -64,7 +65,7 @@ class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
||||||
theme.mode = "Light";
|
theme.mode = "Light";
|
||||||
_themeMode = ThemeMode.light;
|
_themeMode = ThemeMode.light;
|
||||||
}
|
}
|
||||||
theme = MihTheme();
|
|
||||||
theme.platform = Theme.of(context).platform;
|
theme.platform = Theme.of(context).platform;
|
||||||
super.initState();
|
super.initState();
|
||||||
//doInit();
|
//doInit();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue