Skip to content

Instantly share code, notes, and snippets.

@chiragthummar
Created January 16, 2024 12:42
Show Gist options
  • Save chiragthummar/ac3493e50e9a4fda222e937ac63dd85c to your computer and use it in GitHub Desktop.
Save chiragthummar/ac3493e50e9a4fda222e937ac63dd85c to your computer and use it in GitHub Desktop.
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