setSystemChrome method

void setSystemChrome()

Implementation

void setSystemChrome() {
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
  SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
  SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
    statusBarBrightness: themeAntiBrightness,
    statusBarColor: Colors.transparent,
    statusBarIconBrightness: themeAntiBrightness,
    // statusbar color contrast
    systemStatusBarContrastEnforced: false,
    systemNavigationBarColor: Colors.transparent,
    // systemnavigation color contrast
    systemNavigationBarContrastEnforced: false,
    // systemnavigation divider color (piece of shit)
    systemNavigationBarDividerColor: Colors.transparent,
    systemNavigationBarIconBrightness: themeBrightness,
  ));
}