FlexScaffoldBaseColor enum
Base color used as Themedata.scaffoldBackgroundColor
in a theme
produced by FlexColorScheme.light and FlexColorScheme.dark factories.
The used base color is modified by used surfaceMode
and blendLevel
in the FlexColorScheme factory constructors.
By using different base colors you can create alpha blended scaffold background colors with even more variation, as they are mixed with the blend color, but start at different base colors.
If you do not want to get any blend in the Scaffold background color, but
otherwise want to use surface blends with blendLevel
> 0, you can
set the FlexSubThemesData(scaffoldBackgroundSchemeColor)
to any
SchemeColor. Setting this property overrides all scaffold background
color definitions, and always uses the selected color as is.
Values
- lowestBase → const FlexScaffoldBaseColor
-
The lowestBase color always uses Colors.white in light theme mode and Colors.black in dark theme mode, regardless of what colors the various ColorScheme surface colors uses.
- surface → const FlexScaffoldBaseColor
-
The active theme's color scheme surface color will be used.
- surfaceDim → const FlexScaffoldBaseColor
-
The active theme's color scheme surfaceDim color will be used.
- surfaceBright → const FlexScaffoldBaseColor
-
The active theme's color scheme surfaceBright color will be used.
- surfaceContainerLowest → const FlexScaffoldBaseColor
-
The active theme's color scheme surfaceContainerLowest color will be used.
- surfaceContainerLow → const FlexScaffoldBaseColor
-
The active theme's color scheme surfaceContainerLow color will be used.
- surfaceContainer → const FlexScaffoldBaseColor
-
The active theme's color scheme surfaceContainer color will be used.
- surfaceContainerHigh → const FlexScaffoldBaseColor
-
The active theme's color scheme surfaceContainerHigh color will be used.
- surfaceContainerHighest → const FlexScaffoldBaseColor
-
The active theme's color scheme surfaceContainerHighest color will be used.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
color(
ColorScheme? scheme, {Brightness brightness = Brightness.light, bool? useMaterial3}) → Color - Return the Color corresponding to the enum value.
-
getName(
bool isLight) → String - Return the name of the enum value.
-
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<
FlexScaffoldBaseColor> - A constant List of the values in this enum, in order of their declaration.