AnimatedDynamicMaterialTheme

fun AnimatedDynamicMaterialTheme(seedColor: Color, useDarkTheme: Boolean = isSystemInDarkTheme(), withAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, animationSpec: AnimationSpec<Color> = spring(stiffness = Spring.StiffnessLow), shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, isExtendedFidelity: Boolean = false, content: @Composable () -> Unit)

Deprecated

Use DynamicMaterialTheme with animate = true instead.

Replace with

DynamicMaterialTheme(animate = true)

A Material Theme that adapts to the given seed color and animates the color scheme.

You can access the current seed color via LocalDynamicMaterialThemeSeed.

Parameters

seedColor

The seed color to use for generating the color scheme.

useDarkTheme

Whether to use a dark theme or not.

withAmoled

Whether the dark scheme is used with Amoled screen (Pure dark).

style

The style of the color scheme.

contrastLevel

The contrast level of the color scheme.

animationSpec

The animation spec to use for animating the color scheme.

isExtendedFidelity

Whether to use the extended fidelity color set. See MaterialDynamicColors.

content

The Composable content of the theme.

See also