SchemeContent class

A scheme that places the source color in Scheme.primaryContainer.

Primary Container is the source color, adjusted for color relativity. It maintains constant appearance in light mode and dark mode. This adds ~5 tone in light mode, and subtracts ~5 tone in dark mode.

Tertiary Container is an analogous color, specifically, the analog of a color wheel divided into 6, and the precise analog is the one found by increasing hue. It also maintains constant appearance.

Inheritance

Constructors

SchemeContent({required Hct sourceColorHct, required bool isDark, required double contrastLevel})

Properties

contrastLevel double
Value from -1 to 1. -1 represents minimum contrast, 0 represents standard (i.e. the design as spec'd), and 1 represents maximum contrast.
finalinherited
errorPalette TonalPalette
Given a tone, produces a reddish, colorful, color.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isDark bool
Whether or not the scheme is in 'dark mode' or 'light mode'.
finalinherited
neutralPalette TonalPalette
Given a tone, produces a color. Hue and chroma of the color are specified in the design specification of the variant. Usually not colorful at all, intended for background & surface colors.
finalinherited
neutralVariantPalette TonalPalette
Given a tone, produces a color. Hue and chroma of the color are specified in the design specification of the variant. Usually not colorful, but slightly more colorful than Neutral. Intended for backgrounds & surfaces.
finalinherited
primaryPalette TonalPalette
Given a tone, produces a color. Hue and chroma of the color are specified in the design specification of the variant. Usually colorful.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryPalette TonalPalette
Given a tone, produces a color. Hue and chroma of the color are specified in the design specification of the variant. Usually less colorful.
finalinherited
sourceColorArgb int
The source color of the theme as an ARGB integer.
finalinherited
sourceColorHct Hct
The source color of the theme in HCT.
finalinherited
tertiaryPalette TonalPalette
Given a tone, produces a color. Hue and chroma of the color are specified in the design specification of the variant. Usually a different hue from primary and colorful.
finalinherited
variant Variant
The variant, or style, of the theme.
finalinherited

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