AnimatedPainter

data class AnimatedPainter(val painterProvider: @Composable (atEnd: Boolean) -> Painter) : SparkIcon

An icon represented by a composable painter provider.

This enables custom animated icons through Compose's animation system, providing maximum flexibility for complex animations and state-driven visuals. Particularly useful for Kotlin Multiplatform compatibility.

Constructors

Link copied to clipboard
constructor(painterProvider: @Composable (atEnd: Boolean) -> Painter)

Properties

Link copied to clipboard

A composable function that returns a Painter, receiving an atEnd parameter to control animation state