LottieFilePainter
A Lottie animation icon that animates based on the current theme state.
Constructors
Link copied to clipboard
constructor(animationSpec: AnimationSpec<Float>, darkProgress: Float, lightProgress: Float, onReadContent: suspend () -> LottieCompositionSpec)
This implementation displays a Lottie animation with its progress animated between darkProgress and lightProgress based on the theme state. The animation smoothly transitions when the theme changes using the specified animationSpec.
constructor(animationSpec: AnimationSpec<Float>, darkProgress: Float, lightProgress: Float, systemProgress: Float, onReadContent: suspend () -> LottieCompositionSpec)
Functions
Link copied to clipboard
open override fun Icon(state: ThemeAnimationState, tint: Color, modifier: Modifier, contentDescription: String?)
Renders the icon based on the current theme state.