Object

LoadingIndicatorDefaults

Contains default values by the LoadingIndicator.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
object LoadingIndicatorDefaults

Contains default values by the LoadingIndicator.

Properties

Common
val ContainerWidth: Dp

A LoadingIndicator default container width.

Common
val ContainerHeight: Dp

A LoadingIndicator default container height.

Common
val IndicatorSize = LoadingIndicatorTokens.ActiveSize

A LoadingIndicator default active indicator size.

Common
val containerShape: Shape

A LoadingIndicator default container Shape.

Common
val indicatorColor: Color

A LoadingIndicator default active indicator Color when using an uncontained LoadingIndicator.

Common
val containedIndicatorColor: Color

A LoadingIndicator default active indicator Color when using a ContainedLoadingIndicator.

Common
val containedContainerColor: Color

A LoadingIndicator default container Color when using a ContainedLoadingIndicator.

Common
val IndeterminateIndicatorPolygons =
    listOf(
        MaterialShapes.SoftBurst,
        MaterialShapes.Cookie9Sided,
        MaterialShapes.Pentagon,
        MaterialShapes.Pill,
        MaterialShapes.Sunny,
        MaterialShapes.Cookie4Sided,
        MaterialShapes.Oval,
    )

The sequence of RoundedPolygons that the indeterminate LoadingIndicator will morph between when animating.

By default, an indeterminate loading indicator will morph between seven shapes, but you may provide your own shapes sequence when calling the API.

Common
val DeterminateIndicatorPolygons =
    listOf(
        MaterialShapes.Circle.transformed(Matrix().apply { rotateZ(360f / 20) }),
        MaterialShapes.SoftBurst,
    )

The sequence of RoundedPolygons that the determinate LoadingIndicator will morph between when animating. The loading indicator will morph between the shapes as its progress moves between zero to one.

By default, a determinate loading indicator will will morph between two shapes, but you may provide your own shapes sequence when calling the API.