SystemChrome class abstract final

Controls specific aspects of the operating system's graphical interface and how it interacts with the application.

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 Properties

latestStyle SystemUiOverlayStyle?
The last style that was set using SystemChrome.setSystemUIOverlayStyle.
no setter

Static Methods

restoreSystemUIOverlays() Future<void>
Restores the system overlays to the last settings provided via setEnabledSystemUIMode. May be used when the platform force enables/disables UI elements.
setApplicationSwitcherDescription(ApplicationSwitcherDescription description) Future<void>
Specifies the description of the current state of the application as it pertains to the application switcher (also known as "recent tasks").
setEnabledSystemUIMode(SystemUiMode mode, {List<SystemUiOverlay>? overlays}) Future<void>
Specifies the SystemUiMode to have visible when the application is running.
setPreferredOrientations(List<DeviceOrientation> orientations) Future<void>
Specifies the set of orientations the application interface can be displayed in.
setSystemUIChangeCallback(SystemUiChangeCallback? callback) Future<void>
Sets the callback method for responding to changes in the system UI.
setSystemUIOverlayStyle(SystemUiOverlayStyle style) → void
Specifies the style to use for the system overlays (e.g. the status bar on Android or iOS, the system navigation bar on Android) that are visible (if any).