setStatusBarAttr static method
void
setStatusBarAttr({
- Color? statusBarColor = NUIColors.NUITransparent,
- dynamic darkStatusBarIcon = false,
- dynamic darkStatusBar = false,
Implementation
static void setStatusBarAttr({Color? statusBarColor = NUIColors.NUITransparent, Color? navigationBarColor = NUIColors.NUIShadowBlack, darkStatusBarIcon = false, darkNavigationBarIcon = false, darkStatusBar = false}){
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: statusBarColor,
systemNavigationBarColor: navigationBarColor,
statusBarBrightness: (darkStatusBar ?? false) ? Brightness.dark : Brightness.light,
systemNavigationBarIconBrightness: (darkNavigationBarIcon ?? false) ? Brightness.dark : Brightness.light,
statusBarIconBrightness: (darkStatusBarIcon ?? false) ? Brightness.dark : Brightness.light
));
}