Open aisatriani opened 1 year ago
Well going through the Readme file, I too had the same question. I feel the example in the "Quick Start" section is very confusing. I feel it should be more simple. I think giving a sample of how to achevie the intro gif will make understanding how to use lot more easier.
If we agree, I can raise a PR.
I think you can do "intro gif" easily, you should set background gray, and use shimmer modifier.
you can enable or disable like below.
`
val showShimmer by remember {
mutableStateOf(true)
}
Box(
modifier = Modifier
.size(50.dp)
.background(Color.LightGray)
.shimmer(showShimmer)
) {
}
`
@Composable fun Modifier.shimmer(show: Boolean) = this then Modifier.apply { if (show) shimmer() }
Check this for enable/disable: https://github.com/valentinilk/compose-shimmer/issues/7