Picking Images From Gallery Using Jetpack Compose
<p>Grab a cup of coffee and let’s see how to pick images from the gallery using Jetpack Compose.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*P22eZ5gsGKLHTQ2eWOeIiA.jpeg" style="height:394px; width:700px" /></p>
<h1>Setup</h1>
<p>We need to use a dependency called <a href="https://coil-kt.github.io/coil/compose/" rel="noopener ugc nofollow" target="_blank"><strong>Coil</strong></a> in order to display the images. To add it just open <code>:app/build.gradle.kts</code> and paste this into the dependencies block.</p>
<pre>
dependencies {
implementation("io.coil-kt:coil-compose:2.4.0")
}</pre>
<h1>Pick one image</h1>
<p>Firstly, we need to create a variable that will store the photo <strong>URI (Uniform Resource Identifier).</strong></p>
<p><a href="https://medium.com/@daniel.atitienei/picking-images-from-gallery-using-jetpack-compose-a18c11d93e12"><strong>Click Here</strong></a></p>