Skip to content

Instantly share code, notes, and snippets.

@skydoves
Last active February 6, 2022 14:51
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/99b515bffb2749a54b28f14a70de4f88 to your computer and use it in GitHub Desktop.
Save skydoves/99b515bffb2749a54b28f14a70de4f88 to your computer and use it in GitHub Desktop.
FrescoImageCircular
FrescoImage(
imageUrl = stringImageUrl,
// Crop, Fit, Inside, FillHeight, FillWidth, None
contentScale = ContentScale.Crop,
// shows an image with a circular reveal animation.
circularRevealEnabled = 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