utils/system_chrome_utils library

Functions

hideStatusBar() Future<void>
Hides both the status bar and navigation bar, making the app fullscreen.
setDarkStatusBar() → void
Configures the system UI for a dark-themed status bar and navigation bar.
setLightStatusBar() → void
Configures the system UI for a light-themed status bar and navigation bar.
setOrientationLandscape() → void
Locks the screen orientation to landscape mode.
setOrientationPortrait() → void
Locks the screen orientation to portrait mode.
setStatusBarColor(Color statusBarColor, {Color? systemNavigationBarColor, Brightness? statusBarBrightness, Brightness? statusBarIconBrightness, int delayInMilliSeconds = 200}) Future<void>
Sets the status bar color and optional system navigation bar color.
showStatusBar() Future<void>
Restores the status bar and navigation bar visibility.