Package 

Class ShimmerTheme

    • Constructor Detail

      • ShimmerTheme

        ShimmerTheme(AnimationSpec<Float> animationSpec, BlendMode blendMode, Float rotation, List<Color> shaderColors, List<Float> shaderColorStops, Dp shimmerWidth)
    • Method Detail

      • getAnimationSpec

         final AnimationSpec<Float> getAnimationSpec()

        The AnimationSpec which will be used for the traversal. Use an infinite spec to repeat shimmering.

      • getBlendMode

         final BlendMode getBlendMode()

        The BlendMode used in the shimmer's androidx.compose.ui.graphics.Paint. Have a look at the theming samples to get an idea on how to utilize the blend mode.

      • getRotation

         final Float getRotation()

        Describes the orientation of the shimmer in degrees. Zero is thereby defined as shimmer traversing from the left to the right. The rotation is applied clockwise. Only values >= 0 will be accepted.

      • getShaderColors

         final List<Color> getShaderColors()

        The shaderColors can be used to control the colors and alpha values of the shimmer. The size of the list has to be kept in sync with the shaderColorStops. Consult the docs of the androidx.compose.ui.graphics.LinearGradientShader for more information and have a look at the theming samples.