shimmer Effect
Applies a shimmering effect to the composable. This is often used to indicate a loading state. The shimmer is a linear gradient that animates across the composable.
This overload uses a predefined set of grey colors for the shimmer effect.
Return
A Modifier that adds the shimmer effect.
Applies a shimmering effect to a composable, typically used for loading placeholders.
This modifier creates a shimmering animation by applying a linear gradient that moves across the composable. The animation is an infinite loop, giving the appearance of a continuous shimmer.
The gradient consists of three colors by default (0xFFB8B5B5, 0xFF6D6868, 0xFFB8B5B5) to create a highlight effect that sweeps across the component.
Return
A Modifier that applies the shimmer effect.