SystemUiOverlayStyle class Null safety

Specifies a preference for the style of the system overlays.

Used by SystemChrome.setSystemUIOverlayStyle.

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.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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.
SystemUiOverlayStyle(systemNavigationBarColor: Color(0xFF000000), systemNavigationBarIconBrightness: Brightness.light, statusBarIconBrightness: Brightness.dark, statusBarBrightness: Brightness.light)
light → const SystemUiOverlayStyle
System overlays should be drawn with a light color. Intended for applications with a dark background.
SystemUiOverlayStyle(systemNavigationBarColor: Color(0xFF000000), systemNavigationBarIconBrightness: Brightness.light, statusBarIconBrightness: Brightness.light, statusBarBrightness: Brightness.dark)