DynamicMaterialTheme
A Material Theme that adapts to the given seed color and the provided custom colors.
You can access the current seed color via LocalDynamicMaterialThemeSeed.
Parameters
The seed color to use for generating the color scheme.
Whether to use a dark theme or not.
Whether the dark scheme is used with Amoled screen (Pure dark).
The custom primary color of the color scheme.
The custom secondary color of the color scheme.
The custom tertiary color of the color scheme.
The custom neutral color of the color scheme.
The custom neutral variant color of the color scheme.
The custom error color of the color scheme.
The style of the color scheme.
The contrast level of the color scheme.
The spec version of the color scheme.
The platform of the color scheme.
The shapes of the theme.
The typography of the theme.
Whether to animate the color scheme or not.
The animation spec to use for animating the color scheme.
The Composable content of the theme.
See also
A Material Theme that adapts to the given DynamicMaterialThemeState.seedColor.
You can access the current seed color via LocalDynamicMaterialThemeSeed.
Parameters
The state of the dynamic material theme.
Whether to animate the color scheme or not.
The animation spec to use for animating the color scheme.
The Composable content of the theme.
See also
Deprecated
A primary color is an override on top of a seed now. Pass your color as the seed, and keep it as primary to get the colors this overload gives you. Removed in 7.0.
Replace with
DynamicMaterialTheme(seedColor = primary, isDark = isDark, isAmoled = isAmoled, primary = primary, secondary = secondary, tertiary = tertiary, neutral = neutral, neutralVariant = neutralVariant, error = error, style = style, contrastLevel = contrastLevel, specVersion = specVersion, platform = platform, shapes = shapes, typography = typography, animate = animate, animationSpec = animationSpec, content = content)A Material Theme that adapts to the given seed color and the provided custom colors.
You can access the current seed color via LocalDynamicMaterialThemeSeed.
Parameters
The color the theme is based on, and the primary color of the color scheme.
Whether to use a dark theme or not.
Whether the dark scheme is used with Amoled screen (Pure dark).
The custom secondary color of the color scheme.
The custom tertiary color of the color scheme.
The custom neutral color of the color scheme.
The custom neutral variant color of the color scheme.
The custom error color of the color scheme.
The style of the color scheme.
The contrast level of the color scheme.
The spec version of the color scheme.
The platform of the color scheme.
The shapes of the theme.
The typography of the theme.
Whether to animate the color scheme or not.
The animation spec to use for animating the color scheme.
The Composable content of the theme.
See also
Note: primary is used as the seed color and as the primary override, so every palette in the scheme comes from it.