CrossfadePainter
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
The Painter to crossfade from.
The Painter to crossfade to.
The scaling algorithm for start and end.
The duration of the crossfade animation.
The source for measuring time intervals.
If false, the start drawable will not fade out while the end drawable fades in.
If true, this drawable's intrinsic width/height will only be -1 if start and end return -1 for that dimension. If false, the intrinsic width/height will be -1 if start or end return -1 for that dimension. This is useful for views that require an exact intrinsic size to scale the drawable.
Returns true
if this request prefers the end painter's intrinsic size when calculating the CrossfadePainter
's intrinsic size. When enabled, the end painter's intrinsic size takes precedence.