rememberDynamicMaterialThemeState

fun rememberDynamicMaterialThemeState(seedColor: Color, isDark: Boolean, isAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, extendedFidelity: Boolean = false, modifyColorScheme: DynamicMaterialThemeState.(ColorScheme) -> ColorScheme? = null): DynamicMaterialThemeState

Creates a DynamicMaterialThemeState that can be remembered across compositions.

Parameters

seedColor

The initial seed color to generate the color scheme.

isDark

The initial dark mode state.

isAmoled

The initial Amoled state.

style

The initial palette style.

contrastLevel

The initial contrast level.

extendedFidelity

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.