SystemUiUtils class
Helpers for system UI: status bar, navigation bar, overlays, and orientation.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
hideStatusBar(
) → Future< void> - Hides the status bar and navigation bar (fullscreen).
-
resetSystemUI(
BuildContext context) → void - Restores system UI to match the platform light/dark setting.
-
setDarkStatusBar(
) → void - Light content on dark navigation bar; dark status bar icons.
-
setLightStatusBar(
) → void - Dark content on light navigation bar; light status bar icons.
-
setOrientationLandscape(
) → void - Locks orientation to landscape.
-
setOrientationPortrait(
) → void - Locks orientation to portrait.
-
setStatusBarColor(
Color statusBarColor, {Brightness? statusBarBrightness, Brightness? statusBarIconBrightness, bool isTransparent = false, int delayInMilliSeconds = 0}) → Future< void> - Sets the status bar color and optional navigation bar styling.
-
setSystemUI(
Color color, {bool isTransparent = false}) → void - Sets matching status bar and navigation bar colors with auto icon contrast.
-
setTransparentStatusBar(
Color colorBehindStatusBar, {Brightness? forceBrightness}) → void -
Transparent status bar; icon color inferred from
colorBehindStatusBar. -
showStatusBar(
) → Future< void> - Restores the status bar and navigation bar.