SchemeColor enum
Enum used to described which color from the active theme's 30 ColorScheme colors, should be used for by color properties available in component sub-themes.
Used when opting in on component themes. The opinionated component themes
typically have one or more properties called nnnSchemeColor
. Where
nnn
describes the color feature that can be set to a none default
ColorScheme based color.
If not set, the property is null and the default ColorScheme based
color behavior of the opinionated component theme will be used. This may
differ from the corresponding Widget's SDK default un-themed color behavior,
but is often the same if defined at all.
The enum selection primaryVariant
and secondaryVariant
colors have been
deprecated in v4.2.0 as they were deprecated in Flutter SDK stable 2.10.0.
Values
- primary → const SchemeColor
-
The active theme's color scheme primary color will be used.
- onPrimary → const SchemeColor
-
The active theme's color scheme onPrimary color will be used.
- primaryContainer → const SchemeColor
-
The active theme's color scheme primaryContainer color will be used.
- onPrimaryContainer → const SchemeColor
-
The active theme's color scheme onPrimaryContainer color will be used.
- primaryFixed → const SchemeColor
-
The active theme's color scheme primaryFixed color will be used.
- primaryFixedDim → const SchemeColor
-
The active theme's color scheme primaryFixedDim color will be used.
- onPrimaryFixed → const SchemeColor
-
The active theme's color scheme onPrimaryFixed color will be used.
- onPrimaryFixedVariant → const SchemeColor
-
The active theme's color scheme onPrimaryFixedVariant color will be used.
- secondary → const SchemeColor
-
The active theme's color scheme secondary color will be used.
- onSecondary → const SchemeColor
-
The active theme's color scheme onSecondary color will be used.
- secondaryContainer → const SchemeColor
-
The active theme's color scheme secondaryContainer color will be used.
- onSecondaryContainer → const SchemeColor
-
The active theme's color scheme onSecondaryContainer color will be used.
- secondaryFixed → const SchemeColor
-
The active theme's color scheme secondaryFixed color will be used.
- secondaryFixedDim → const SchemeColor
-
The active theme's color scheme secondaryFixedDim color will be used.
- onSecondaryFixed → const SchemeColor
-
The active theme's color scheme onSecondaryFixed color will be used.
- onSecondaryFixedVariant → const SchemeColor
-
The active theme's color scheme onSecondaryFixedVariant color will be used.
- tertiary → const SchemeColor
-
The active theme's color scheme tertiary color will be used.
- onTertiary → const SchemeColor
-
The active theme's color scheme onTertiary color will be used.
- tertiaryContainer → const SchemeColor
-
The active theme's color scheme tertiaryContainer color will be used.
- onTertiaryContainer → const SchemeColor
-
The active theme's color scheme onTertiaryContainer color will be used.
- tertiaryFixed → const SchemeColor
-
The active theme's color scheme tertiaryFixed color will be used.
- tertiaryFixedDim → const SchemeColor
-
The active theme's color scheme tertiaryFixedDim color will be used.
- onTertiaryFixed → const SchemeColor
-
The active theme's color scheme onTertiaryFixed color will be used.
- onTertiaryFixedVariant → const SchemeColor
-
The active theme's color scheme onTertiaryFixedVariant color will be used.
- error → const SchemeColor
-
The active theme's color scheme error color will be used.
- onError → const SchemeColor
-
The active theme's color scheme onError color will be used.
- errorContainer → const SchemeColor
-
The active theme's color scheme errorContainer color will be used.
- onErrorContainer → const SchemeColor
-
The active theme's color scheme onErrorContainer color will be used.
- surface → const SchemeColor
-
The active theme's color scheme surface color will be used.
- onSurface → const SchemeColor
-
The active theme's color scheme onSurface color will be used.
- surfaceDim → const SchemeColor
-
The active theme's color scheme surfaceDim color will be used.
- surfaceBright → const SchemeColor
-
The active theme's color scheme surfaceBright color will be used.
- surfaceContainerLowest → const SchemeColor
-
The active theme's color scheme surfaceContainerLowest color will be used.
- surfaceContainerLow → const SchemeColor
-
The active theme's color scheme surfaceContainerLow color will be used.
- surfaceContainer → const SchemeColor
-
The active theme's color scheme surfaceContainer color will be used.
- surfaceContainerHigh → const SchemeColor
-
The active theme's color scheme surfaceContainerHigh color will be used.
- surfaceContainerHighest → const SchemeColor
-
The active theme's color scheme surfaceContainerHighest color will be used.
- onSurfaceVariant → const SchemeColor
-
The active theme's color scheme onSurfaceVariant color will be used.
- outline → const SchemeColor
-
The active theme's color scheme outline color will be used.
- outlineVariant → const SchemeColor
-
The active theme's color scheme outlineVariant color will be used.
- shadow → const SchemeColor
-
The active theme's color scheme shadow color will be used.
- scrim → const SchemeColor
-
The active theme's color scheme scrim color will be used.
- inverseSurface → const SchemeColor
-
The active theme's color scheme inverseSurface color will be used.
- onInverseSurface → const SchemeColor
-
The active theme's color scheme onInverseSurface color will be used.
- inversePrimary → const SchemeColor
-
The active theme's color scheme inversePrimary color will be used.
- surfaceTint → const SchemeColor
-
The active theme's color scheme surfaceTint color will be used.
- black → const SchemeColor
-
Black color will be used.
- white → const SchemeColor
-
White color will be used.
- transparent → const SchemeColor
-
Transparent 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
-
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<
SchemeColor> - A constant List of the values in this enum, in order of their declaration.