DynamicSchemeVariant enum

The algorithm used to construct a ColorScheme in ColorScheme.fromSeed.

The tonalSpot variant builds default Material scheme colors. These colors are mapped to light or dark tones to achieve visually accessible color pairings with sufficient contrast between foreground and background elements.

In some cases, the tones can prevent colors from appearing as intended, such as when a color is too light to offer enough contrast for accessibility. Color fidelity (DynamicSchemeVariant.fidelity) is a feature that adjusts tones in these cases to produce the intended visual results without harming visual contrast.

Inheritance

Values

tonalSpot → const DynamicSchemeVariant

Default for Material theme colors. Builds pastel palettes with a low chroma.

fidelity → const DynamicSchemeVariant

The resulting color palettes match seed color, even if the seed color is very bright (high chroma).

monochrome → const DynamicSchemeVariant

All colors are grayscale, no chroma.

neutral → const DynamicSchemeVariant

Close to grayscale, a hint of chroma.

vibrant → const DynamicSchemeVariant

Pastel colors, high chroma palettes. The primary palette's chroma is at maximum. Use fidelity instead if tokens should alter their tone to match the palette vibrancy.

expressive → const DynamicSchemeVariant

Pastel colors, medium chroma palettes. The primary palette's hue is different from the seed color, for variety.

content → const DynamicSchemeVariant

Almost identical to fidelity. Tokens and palettes match the seed color. ColorScheme.primaryContainer is the seed color, adjusted to ensure contrast with surfaces. The tertiary palette is analogue of the seed color.

rainbow → const DynamicSchemeVariant

A playful theme - the seed color's hue does not appear in the theme.

fruitSalad → const DynamicSchemeVariant

A playful theme - the seed color's hue does not appear in the theme.

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