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