Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created August 1, 2021 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/91ed62ba72e5ef91ce67b82830da60c9 to your computer and use it in GitHub Desktop.
Save skydoves/91ed62ba72e5ef91ce67b82830da60c9 to your computer and use it in GitHub Desktop.
FrescoImage
FrescoImage(
imageUrl = stringImageUrl,
// Crop, Fit, Inside, FillHeight, FillWidth, None
contentScale = ContentScale.Crop,
// shows an image with a circular revealed animation.
circularRevealedEnabled = true,
// shows a placeholder ImageBitmap when loading.
placeHolder = ImageBitmap.imageResource(R.drawable.placeholder),
// shows an error ImageBitmap when the request failed.
error = ImageBitmap.imageResource(R.drawable.error)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment