setSystemOverlayStyle static method
void
setSystemOverlayStyle({
- Brightness? statusBarBrightness,
- Brightness? statusBarIconBrightness,
- Color? statusBarColor,
DO THAT:
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(...));
Implementation
static void setSystemOverlayStyle({
Brightness? statusBarBrightness,
Brightness? statusBarIconBrightness,
Brightness? navigationBarIconBrightness,
Color? statusBarColor,
Color? navigationBarColor,
Color? navigationBarDividerColor,
}) {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
systemNavigationBarColor: navigationBarColor,
systemNavigationBarDividerColor: navigationBarDividerColor,
systemNavigationBarIconBrightness: navigationBarIconBrightness,
statusBarColor: statusBarColor,
statusBarBrightness: statusBarBrightness,
statusBarIconBrightness: statusBarIconBrightness,
));
}