DynamicMaterialThemeState

State object that holds the current values for a dynamic material theme.

Use rememberDynamicMaterialThemeState to create an instance of this class.

Parameters

initialSeedColor

The initial seed color to generate the color scheme.

initialIsDark

The initial dark mode state.

initialIsAmoled

The initial Amoled state.

initialStyle

The initial palette style.

initialContrastLevel

The initial contrast level.

initialExtendedFidelity

The initial extended fidelity state.

modifyColorScheme

Use this callback to modify the color scheme once it has been generated. Note that if you modify a color in the scheme, the on* color might not have enough contrast.

Properties

Link copied to clipboard

The generated color scheme based on the current state.

Link copied to clipboard

The contrast level.

Link copied to clipboard

The dark mode with Amoled state.

Link copied to clipboard

The dark mode state.

Link copied to clipboard

The extended fidelity state.

Link copied to clipboard

The seed color to generate the color scheme from.

Link copied to clipboard

The palette style.