You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'd like to use a Lottie animation as a placeholder for images loaded via Coil, which only directly supports Painters
Describe the solution you'd like
An implementation of Painter which has the same constructor parameters as the LottieAnimation composable. I believe that since most of the logic is inside of the Canvas onDraw, it would be straight-forward to move into a Painter's onDraw.
Describe alternatives you've considered
Coil also allows for manual state management, which you could use to add and remove LottieAnimation to the composition. We currently do this, but it's not exactly intuitive.
Additional context
Coil similarly has their API support both a Painter (rememberAsyncImagePainter) and a composable (AsyncImage), both of which are handy in different situations.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'd like to use a Lottie animation as a placeholder for images loaded via Coil, which only directly supports Painters
Describe the solution you'd like
An implementation of
Painter
which has the same constructor parameters as theLottieAnimation
composable. I believe that since most of the logic is inside of the CanvasonDraw
, it would be straight-forward to move into a Painter'sonDraw
.Describe alternatives you've considered
Coil also allows for manual state management, which you could use to add and remove
LottieAnimation
to the composition. We currently do this, but it's not exactly intuitive.Additional context
Coil similarly has their API support both a Painter (
rememberAsyncImagePainter
) and a composable (AsyncImage
), both of which are handy in different situations.The text was updated successfully, but these errors were encountered: