Created
January 16, 2024 12:42
-
-
Save chiragthummar/ac3493e50e9a4fda222e937ac63dd85c 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
val imageLoader = ImageLoader.Builder(context) | |
.components { | |
add(VideoFrameDecoder.Factory()) | |
}.crossfade(true) | |
.build() | |
val painter = rememberAsyncImagePainter( | |
model = state.galleryFiles[page].uri, | |
imageLoader = imageLoader, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment