CrossfadePainter
class CrossfadePainter(start: Painter?, val end: Painter?, val contentScale: ContentScale = ContentScale.Fit, val duration: Duration = 200.milliseconds, val timeSource: TimeSource = TimeSource.Monotonic, val fadeStart: Boolean = true, val preferExactIntrinsicSize: Boolean = false) : Painter
A Painter that crossfades from start to end.
NOTE: The animation can only be executed once as the start painter is dereferenced at the end of the transition.
Parameters
Constructors
Link copied to clipboard
constructor(start: Painter?, end: Painter?, contentScale: ContentScale = ContentScale.Fit, duration: Duration = 200.milliseconds, timeSource: TimeSource = TimeSource.Monotonic, fadeStart: Boolean = true, preferExactIntrinsicSize: Boolean = false)