Closed sameer882000 closed 3 years ago
@sameer882000
For now you can do this:
final mode = AdaptiveTheme.of(context).mode; if (mode == AdaptiveThemeMode.light) { AdaptiveTheme.of(context).setDark(); } else { AdaptiveTheme.of(context).setLight(); }
Maybe I'll add this option in the toggleThemeMode() method like this in future:
toggleThemeMode()
AdaptiveTheme.of(context).toggleThemeMode(useSystem: false);
@BirjuVachhani Thanks. Got it.
@sameer882000
For now you can do this:
Maybe I'll add this option in the
toggleThemeMode()
method like this in future: