FlexAppBarStyle enum

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

Inheritance

Constructors

FlexAppBarStyle()
const

Values

primary → const FlexAppBarStyle

Use the scheme primary color as the AppBar's themed background color.

This is the default for light themes, when ThemeData.useMaterial3 is false.

material → const FlexAppBarStyle

Use Material 2 default surface color as the AppBar's themed background color.

This is the default for dark schemes, when ThemeData.useMaterial3 is false.

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

surface → const FlexAppBarStyle

Use scheme surface color as the AppBar's themed background color, including any blend (surface tint) color it may have.

This is the default for light and dark theme mode, when ThemeData.useMaterial3 is true.

background → const FlexAppBarStyle

Use scheme background color as the AppBar's themed background color, including any blend (surface tint) color it may have.

scaffoldBackground → const FlexAppBarStyle

Use scaffold background color as the AppBar's themed background color, including any blend (surface tint) color it may have.

custom → const FlexAppBarStyle

Use a custom AppBar background color as its themed background color.

If you provide a color value to FlexColorScheme.appBarBackground color directly, it will be used as the themed AppBar background color.

If it is not defined, then the appBarColor defined in passed in FlexSchemeColor property colors is used when using the factories FlexColorScheme.light and FlexColorScheme.dark, as the custom color for the AppBar theme.

The built-in color schemes have the same color value that is assigned to FlexSchemeColor.tertiary also assigned to FlexSchemeColor.appBarColor. With them, the custom choice always results in the FlexSchemeColor.tertiary color, which is same as output ColorScheme.tertiary, being used as the AppBar color when using the custom choice with them.

FlexColorSchemes using custom FlexSchemeColor can assign any color to their FlexSchemeColor.appBarColor color. It does not have to be a part of the colors that exist in the standard ColorScheme.

If there is no custom color definition in above paths when using the custom style, the AppBar color will be same as with material choice.

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.