Picking Images From Gallery Using Jetpack Compose

Grab a cup of coffee  and let’s see how to pick images from the gallery using Jetpack Compose.

Setup

We need to use a dependency called Coil in order to display the images. To add it just open :app/build.gradle.kts and paste this into the dependencies block.

dependencies {
    implementation("io.coil-kt:coil-compose:2.4.0")
}

Pick one image

Firstly, we need to create a variable that will store the photo URI (Uniform Resource Identifier).

Click Here