Closed Junzz0 closed 2 days ago
Yep, this is planned to be next up now that alpha07
is out. There's already a ticket tracking support here.
Just to note rememberAsyncImagePainter(painterResource(Icons.ABC))
will always crash since you can't pass a Painter
to rememberAsyncImagePainter
. Painter
s should be passed directly to Image
. This will be supported, though:
AsyncImage(
model = Res.getUri("files/my_photo.jpg"),
contentDescription = null,
)
Is your feature request related to a problem? Please describe. Loading a DrawableResource with coil will cause a crash.
Icons.ABC is DrawableResource
https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html
Describe the solution you'd like Request support for DrawableResource for compose multiplatform