Staring with 1.0.x
the best way to achieve it is to use the Coil-Compose library.
Add in your build.gradle
the dependency
dependencies {
implementation("io.coil-kt:coil-compose:1.3.1")
}
Then just use:
Image(
painter = rememberImagePainter("your url"),
contentDescription = "My content description",
)
This loads the url
passed in with rememberImagePainter
, and then displays the resulting image using the standard Image
composable.