Package-level declarations
Types
Link copied to clipboard
interface ShimmerBounds
Link copied to clipboard
data class ShimmerTheme(val animationSpec: AnimationSpec<Float>, val blendMode: BlendMode, val rotation: Float, val shaderColors: List<Color>, val shaderColorStops: List<Float>?, val shimmerWidth: Dp)
Functions
Link copied to clipboard
fun rememberShimmer(shimmerBounds: ShimmerBounds, theme: ShimmerTheme = LocalShimmerTheme.current): Shimmer
Link copied to clipboard
The regular boundsInWindow returns a rect that is clipped by the edges of the window. So if a view is scrolled half way out of the screen, the rect returned would only have half the size required for the shimmer calculations.