ThemeAnimationScope

A composable scope that enables theme animations for its content.

The animation captures the visual state of the content before and after the theme change, creating a smooth transition effect. Place this scope around the composable tree that should be animated during theme toggles.

Parameters

state

The ThemeAnimationState instance that controls the theme animation. This state manages the current theme, animation timing, and format.

content

The composable content to be displayed and animated during theme transitions. This content will be captured and rendered with theme animation effects.