FlexAppBarStyle enum

Enum to select the used AppBarTheme style in FlexColorScheme based themes when using its light and dark factories.

Inheritance

Constructors

FlexAppBarStyle()
const

Values

primary → const FlexAppBarStyle

Use the scheme primary color as app bar themed background color.

This is the default for light themes.

material → const FlexAppBarStyle

Use Material surface color as app bar themed background color.

This is the default for dark schemes.

For a dark scheme this choice will result in a near black app bar. If this setting is used in a light scheme, it will result in a white app bar, as the standard Material surface color for light scheme is white.

surface → const FlexAppBarStyle

Use active surface color as app bar themed background color, including any primary blend it may have.

background → const FlexAppBarStyle

Use active background color as app bar themed background color, including any primary blend it may have.

custom → const FlexAppBarStyle

Use the color defined by the separate FlexColorScheme.appBarBackground color, as the themed app bar background color.

The built in schemes use the same color as the one assigned to FlexSchemeColor.secondaryVariant as the color assigned to FlexSchemeColor.appBarColor. Custom schemes can assign any color to their FlexSchemeColor.appBarColor color. It does not have to be a part of the colors that are a part of standard ColorScheme.

When using the custom style option, the color assigned in FlexSchemeColor.appBarColor in the FlexSchemeColor passed to the factories FlexColorScheme.light or FlexColorScheme.dark colors property, will be used as the value for FlexColorScheme.appBarBackground when the factory creates the FlexColorScheme object. If there is no custom color definition in factory colors in the used FlexSchemeColor passed to it, then the primary color will be used by the light factory and surface color will be used by the dark factory for the FlexColorScheme.appBarBackground color, thus defaulting to standard Flutter SDK app bar behaviour when the color for the custom choice is not defined and the custom option is passed to the factories.

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<FlexAppBarStyle>
A constant List of the values in this enum, in order of their declaration.