FlexAppBarStyle enum
Enum to select the used AppBarTheme style in FlexColorScheme based themes
when using its light
and dark
factories.
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.
- material → const FlexAppBarStyle
-
Use Material surface color as the AppBar's 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 scheme surface color as the the AppBar's themed background color, including any blend color it may have.
- background → const FlexAppBarStyle
-
Use scheme background color as the the AppBar's themed background color, including any blend 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 propertycolors
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.secondaryVariant also assigned to FlexSchemeColor.appBarColor, so with them, the custom choice always results in the FlexSchemeColor.secondaryVariant color, which is same as output
ColorScheme.secondaryVariant
, 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
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.