Package-level declarations

Types

Link copied to clipboard

The theme reveal mode consumed by ThemeAnimationFormat.Sliding.

Link copied to clipboard

Defines the visual format and behavior of theme transition animations.

Link copied to clipboard
class ThemeAnimationState(themeProvider: ThemeProvider, coroutineScope: CoroutineScope, animationSpec: AnimationSpec<Float>, format: ThemeAnimationFormat, useDynamicContent: Boolean)

A state holder that manages theme toggle animations.

Functions

Link copied to clipboard
fun rememberThemeAnimationState(themeProvider: ThemeProvider = rememberRuntimeThemeProvider(), animationSpec: AnimationSpec<Float> = tween(300), format: ThemeAnimationFormat = ThemeAnimationFormat.Crossfade, useDynamicContent: Boolean = false): ThemeAnimationState

Creates a state holder for theme toggle animations with customizable animation characteristics and behavior. The state is remembered across recompositions.

Link copied to clipboard

A composable scope that enables theme animations for its content.