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.

Inheritance

Constructors

SchemeColor()
const

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.

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.

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.

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.

background → const SchemeColor

The active theme's color scheme background color will be used.

onBackground → const SchemeColor

The active theme's color scheme onBackground 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.

surfaceVariant → const SchemeColor

The active theme's color scheme surfaceVariant 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.

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