SchemeFidelity 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 the complement to the source color, using TemperatureCache. It also maintains constant appearance.

Inheritance
Annotations
  • @Deprecated("Use DynamicScheme directly instead")

Constructors

SchemeFidelity({required Hct? sourceColorHct, required bool isDark, required double? contrastLevel, SpecVersion? specVersion = DynamicScheme.defaultSpecVersion, Platform? platform = DynamicScheme.defaultPlatform})

Properties

background int
no setterinherited
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
controlActivated int
no setterinherited
controlHighlight int
no setterinherited
controlNormal int
no setterinherited
error int
no setterinherited
errorContainer int
no setterinherited
errorDim int
no setterinherited
errorPalette TonalPalette
finalinherited
errorPaletteKeyColor int
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
inverseOnSurface int
no setterinherited
inversePrimary int
no setterinherited
inverseSurface int
no setterinherited
isDark bool
Whether or not the scheme is dark mode.
finalinherited
neutralPalette TonalPalette
finalinherited
neutralPaletteKeyColor int
no setterinherited
neutralVariantPalette TonalPalette
finalinherited
neutralVariantPaletteKeyColor int
no setterinherited
onBackground int
no setterinherited
onError int
no setterinherited
onErrorContainer int
no setterinherited
onPrimary int
no setterinherited
onPrimaryContainer int
no setterinherited
onPrimaryFixed int
no setterinherited
onPrimaryFixedVariant int
no setterinherited
onSecondary int
no setterinherited
onSecondaryContainer int
no setterinherited
onSecondaryFixed int
no setterinherited
onSecondaryFixedVariant int
no setterinherited
onSurface int
no setterinherited
onSurfaceVariant int
no setterinherited
onTertiary int
no setterinherited
onTertiaryContainer int
no setterinherited
onTertiaryFixed int
no setterinherited
onTertiaryFixedVariant int
no setterinherited
outline int
no setterinherited
outlineVariant int
no setterinherited
platform Platform
The platform on which this scheme is intended to be used.
finalinherited
primary int
no setterinherited
primaryContainer int
no setterinherited
primaryDim int
no setterinherited
primaryFixed int
no setterinherited
primaryFixedDim int
no setterinherited
primaryPalette TonalPalette
finalinherited
primaryPaletteKeyColor int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrim int
no setterinherited
secondary int
no setterinherited
secondaryContainer int
no setterinherited
secondaryDim int
no setterinherited
secondaryFixed int
no setterinherited
secondaryFixedDim int
no setterinherited
secondaryPalette TonalPalette
finalinherited
secondaryPaletteKeyColor int
no setterinherited
shadow int
no setterinherited
sourceColorArgb int
The source color of the scheme in ARGB format.
finalinherited
sourceColorHct Hct
The source color of the scheme in HCT format.
finalinherited
specVersion SpecVersion
The spec version of the scheme.
finalinherited
surface int
no setterinherited
surfaceBright int
no setterinherited
surfaceContainer int
no setterinherited
surfaceContainerHigh int
no setterinherited
surfaceContainerHighest int
no setterinherited
surfaceContainerLow int
no setterinherited
surfaceContainerLowest int
no setterinherited
surfaceDim int
no setterinherited
surfaceTint int
no setterinherited
surfaceVariant int
no setterinherited
tertiary int
no setterinherited
tertiaryContainer int
no setterinherited
tertiaryDim int
no setterinherited
tertiaryFixed int
no setterinherited
tertiaryFixedDim int
no setterinherited
tertiaryPalette TonalPalette
finalinherited
tertiaryPaletteKeyColor int
no setterinherited
textHintInverse int
no setterinherited
textPrimaryInverse int
no setterinherited
textPrimaryInverseDisableOnly int
no setterinherited
textSecondaryAndTertiaryInverse int
no setterinherited
textSecondaryAndTertiaryInverseDisabled int
no setterinherited
variant Variant
The variant of the scheme.
finalinherited

Methods

getArgb(DynamicColor dynamicColor) int
inherited
getHct(DynamicColor dynamicColor) Hct
inherited
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