SystemUiOverlayStyle class

Specifies a preference for the style of the system overlays.

Used by AppBar.systemOverlayStyle for declaratively setting the style of the system overlays, and by SystemChrome.setSystemUIOverlayStyle for imperatively setting the style of the system overlays.

Annotations

Constructors

SystemUiOverlayStyle({Color? systemNavigationBarColor, Color? systemNavigationBarDividerColor, Brightness? systemNavigationBarIconBrightness, bool? systemNavigationBarContrastEnforced, Color? statusBarColor, Brightness? statusBarBrightness, Brightness? statusBarIconBrightness, bool? systemStatusBarContrastEnforced})
Creates a new SystemUiOverlayStyle.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusBarBrightness Brightness?
The brightness of top status bar.
final
statusBarColor Color?
The color of top status bar.
final
statusBarIconBrightness Brightness?
The brightness of the top status bar icons.
final
systemNavigationBarColor Color?
The color of the system bottom navigation bar.
final
systemNavigationBarContrastEnforced bool?
Overrides the contrast enforcement when setting a transparent navigation bar.
final
systemNavigationBarDividerColor Color?
The color of the divider between the system's bottom navigation bar and the app's content.
final
systemNavigationBarIconBrightness Brightness?
The brightness of the system navigation bar icons.
final
systemStatusBarContrastEnforced bool?
Overrides the contrast enforcement when setting a transparent status bar.
final

Methods

copyWith({Color? systemNavigationBarColor, Color? systemNavigationBarDividerColor, bool? systemNavigationBarContrastEnforced, Color? statusBarColor, Brightness? statusBarBrightness, Brightness? statusBarIconBrightness, bool? systemStatusBarContrastEnforced, Brightness? systemNavigationBarIconBrightness}) SystemUiOverlayStyle
Creates a copy of this theme with the given fields replaced with new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

dark → const SystemUiOverlayStyle
System overlays should be drawn with a dark color. Intended for applications with a light background.
light → const SystemUiOverlayStyle
System overlays should be drawn with a light color. Intended for applications with a dark background.