rememberDynamicMaterialThemeState
Creates a DynamicMaterialThemeState that can be remembered across compositions using custom colors.
Parameters
The initial seed color to generate the color scheme.
The initial dark mode state.
The initial Amoled state.
A custom color to modify the primary color in the generated color scheme.
A custom color to modify the secondary color in the generated color scheme.
A custom color to modify the tertiary color in the generated color scheme.
A custom color to modify the neutral color in the generated color scheme.
A custom color to modify the neutral variant color in the generated color scheme.
A custom color to modify the error color in the generated color scheme.
The initial palette style.
The initial contrast level.
The initial extended fidelity state.
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.
Creates a DynamicMaterialThemeState that can be remembered across compositions using custom colors.
Note: The primary color will be used as the seed color.
Parameters
The initial seed color to generate the color scheme.
The initial dark mode state.
The initial Amoled state.
A custom color to modify the secondary color in the generated color scheme.
A custom color to modify the tertiary color in the generated color scheme.
A custom color to modify the neutral color in the generated color scheme.
A custom color to modify the neutral variant color in the generated color scheme.
A custom color to modify the error color in the generated color scheme.
The initial palette style.
The initial contrast level.
The initial extended fidelity state.
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.