Start native apps faster with the Composables CLI ->
Object

LoadingIndicatorDefaults

Contains default values by the LoadingIndicator.

Source set: Common
public object LoadingIndicatorDefaults

Contains default values by the LoadingIndicator.

Properties

ContainerWidth

Source set: Common
public val ContainerWidth: Dp = LoadingIndicatorTokens.ContainerWidth

A LoadingIndicator default container width.

ContainerHeight

Source set: Common
public val ContainerHeight: Dp = LoadingIndicatorTokens.ContainerHeight

A LoadingIndicator default container height.

IndicatorSize

Source set: Common
public val IndicatorSize: Dp = LoadingIndicatorTokens.ActiveSize

A LoadingIndicator default active indicator size.

containerShape

Source set: Common
public val containerShape: Shape

A LoadingIndicator default container Shape.

indicatorColor

Source set: Common
public val indicatorColor: Color

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

containedIndicatorColor

Source set: Common
public val containedIndicatorColor: Color

A LoadingIndicator default active indicator Color when using a ContainedLoadingIndicator.

containedContainerColor

Source set: Common
public val containedContainerColor: Color

A LoadingIndicator default container Color when using a ContainedLoadingIndicator.

IndeterminateIndicatorPolygons

Source set: Common
public val IndeterminateIndicatorPolygons: List<RoundedPolygon> =
        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.

DeterminateIndicatorPolygons

Source set: Common
public val DeterminateIndicatorPolygons: List<RoundedPolygon> =
        listOf(
            // Rotating the circle gets us a smoother morphing to the soft-burst shapes, which is
            // also being rotated at the same angle.
            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.