Coil usage in compose still isn't 100% clear #811
-
The example given shows
What I don't understand is whether or not So my question is. What's the baseline/standard/typical way to use coil-compose? Is it just
I do want to say that accompanist compose had a few issues in my app with images not loading intermittently, accompanist requiring a scale type for some reason to work properly, and required wayyy too much code to do a crossfade. I'm very happy to announce that all those issues went away when using coil-compose! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Image(
painter = rememberImagePainter("https://www.example.com/image.jpg"),
contentDescription = null,
modifier = Modifier.size(128.dp)
) is the simplest way to use Coil in Jetpack Compose.
|
Beta Was this translation helpful? Give feedback.
is the simplest way to use Coil in Jetpack Compose.
builder
is only used to configure theImageRequest
object.allowHardware(false)
andonExecute
are only shown in those examples for illustrative purposes. I removed theallowHardware
call from the docs since it can be a bit confusing and is only used in specific cases.