-
-
Save KatieBarnett/a586797d79e0e0bd4b6a5445420e27af to your computer and use it in GitHub Desktop.
Displaying the image bitmap
This file contains hidden or 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
| loadedBitmap.let { bitmap -> | |
| if (bitmap != null) { | |
| Image( | |
| provider = ImageProvider(bitmap), | |
| contentDescription = null, | |
| contentScale = ContentScale.Crop, | |
| modifier = modifier, | |
| ) | |
| } else { | |
| CircularProgressIndicator() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment