FlexSystemNavBarStyle enum

Enum used to define the SystemUiOverlayStyle for the system navigation bar.

Used with the FlexColorScheme.themedSystemNavigationBar helper to select the background style of system navigation bar when using the helper in an AnnotatedRegion to style the system navigation bar.

Inheritance

Constructors

FlexSystemNavBarStyle()
const

Values

system → const FlexSystemNavBarStyle

Standard Android system style, white in light theme and black in dark theme.

surface → const FlexSystemNavBarStyle

The system navigation bar will be the same color as active theme colorScheme.surface color. If your FlexColorScheme definition is set to use primary branded surface and background colors, the same primary color blend that the surface color has received will be used.

background → const FlexSystemNavBarStyle

The system navigation bar will be the same color as active theme colorScheme.background color. If your FlexColorScheme definition is set to use primary branded surface and background colors, the same primary color blend that the background color has received will be used.

scaffoldBackground → const FlexSystemNavBarStyle

The system navigation bar will be the same color as active theme scaffoldBackground color. If your FlexColorScheme definition is set to use primary branded surface and background colors, the same primary color blend that the scaffoldBackground color has received will be used.

transparent → const FlexSystemNavBarStyle

Make the system navigation bar fully transparent, showing the background, while navigation buttons float over the background. For this to work Android SDK has to be >= 29.

The fully transparent system navigation bar works well when there is a bottom navigation bar with some opacity, you can then share the same background as it has with the system navigation bar, using same color and opacity as on the bottom navigation bar, creating one shared surface with same color and opacity on bottom navigation bar and the system navigation bar. The package readme includes on example of this.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

Constants

values → const List<FlexSystemNavBarStyle>
A constant List of the values in this enum, in order of their declaration.