-
-
Save skydoves/e3a99c9be9246f89e95817bab90986f6 to your computer and use it in GitHub Desktop.
CoilImageShimmer
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
CoilImage( | |
imageModel = poster.poster, | |
modifier = modifier, | |
// shows a shimmering effect when loading an image. | |
shimmerParams = ShimmerParams( | |
baseColor = MaterialTheme.colors.background, | |
highlightColor = shimmerHighLight, | |
durationMillis = 350, | |
dropOff = 0.65f, | |
tilt = 20f | |
), | |
// shows an error text message when request failed. | |
failure = { | |
Text(text = "image request failed.") | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment