xStatusBar function

void xStatusBar(
  1. {dynamic statusBarColor = Colors.transparent,
  2. Brightness statusBarBrightness,
  3. Brightness statusBarIconBrightness,
  4. Color systemNavigationBarColor,
  5. Color systemNavigationBarDividerColor,
  6. Brightness systemNavigationBarIconBrightness}
)

Implementation

void xStatusBar(
    {statusBarColor = Colors.transparent,
    Brightness statusBarBrightness,
    Brightness statusBarIconBrightness,
    Color systemNavigationBarColor,
    Color systemNavigationBarDividerColor,
    Brightness systemNavigationBarIconBrightness}) {
  return SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
    statusBarColor: statusBarColor,
    statusBarBrightness: statusBarBrightness,
    statusBarIconBrightness: statusBarIconBrightness,
    systemNavigationBarColor: systemNavigationBarColor,
    systemNavigationBarDividerColor: systemNavigationBarDividerColor,
    systemNavigationBarIconBrightness: systemNavigationBarIconBrightness,
  ));
}