isPlatformDarkMode property
bool
isPlatformDarkMode
Check if dark mode theme is enable on platform on android Q+
Implementation
bool get isPlatformDarkMode =>
(ui.PlatformDispatcher.instance.platformBrightness == Brightness.dark);
Check if dark mode theme is enable on platform on android Q+
bool get isPlatformDarkMode =>
(ui.PlatformDispatcher.instance.platformBrightness == Brightness.dark);