Created
January 31, 2023 11:23
-
-
Save tdcolvin/c0db070069161f481648ad22e54adf84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (photoUri != null) { | |
//Use Coil to display the selected image | |
val painter = rememberAsyncImagePainter( | |
ImageRequest | |
.Builder(LocalContext.current) | |
.data(data = photoUri) | |
.build() | |
) | |
Image( | |
painter = painter, | |
contentDescription = null | |
... | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment