Start native apps faster with the Composables CLI ->
Object

ProgressIndicatorDefaults

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Source set: Common
public object ProgressIndicatorDefaults

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Properties

linearColor

Source set: Common
public val linearColor: Color

Default color for a linear progress indicator.

circularColor

Source set: Common
public val circularColor: Color

Default color for a circular progress indicator.

linearTrackColor

Source set: Common
public val linearTrackColor: Color

Default track color for a linear progress indicator.

circularTrackColor

Source set: Common
@Deprecated(
        "Renamed to circularDeterminateTrackColor or circularIndeterminateTrackColor",
        ReplaceWith("ProgressIndicatorDefaults.circularIndeterminateTrackColor"),
        DeprecationLevel.WARNING,
    )
    public val circularTrackColor: Color

Default track color for a circular progress indicator.

circularDeterminateTrackColor

Source set: Common
public val circularDeterminateTrackColor: Color

Default track color for a circular determinate progress indicator.

circularIndeterminateTrackColor

Source set: Common
public val circularIndeterminateTrackColor: Color

Default track color for a circular indeterminate progress indicator.

CircularStrokeWidth

Source set: Common
public val CircularStrokeWidth: Dp = CircularProgressIndicatorTokens.TrackThickness

Default stroke width for a circular progress indicator.

LinearStrokeCap

Source set: Common
public val LinearStrokeCap: StrokeCap = StrokeCap.Round

Default stroke cap for a linear progress indicator.

CircularDeterminateStrokeCap

Source set: Common
public val CircularDeterminateStrokeCap: StrokeCap = StrokeCap.Round

Default stroke cap for a determinate circular progress indicator.

CircularIndeterminateStrokeCap

Source set: Common
public val CircularIndeterminateStrokeCap: StrokeCap = StrokeCap.Round

Default stroke cap for an indeterminate circular progress indicator.

LinearTrackStopIndicatorSize

Source set: Common
public val LinearTrackStopIndicatorSize: Dp = LinearProgressIndicatorTokens.StopSize

Default track stop indicator size for a linear progress indicator.

LinearIndicatorTrackGapSize

Source set: Common
public val LinearIndicatorTrackGapSize: Dp = LinearProgressIndicatorTokens.TrackActiveSpace

Default indicator track gap size for a linear progress indicator.

CircularIndicatorTrackGapSize

Source set: Common
public val CircularIndicatorTrackGapSize: Dp = CircularProgressIndicatorTokens.TrackActiveSpace

Default indicator track gap size for a circular progress indicator.

ProgressAnimationSpec

Source set: Common
public val ProgressAnimationSpec: SpringSpec<Float> =
        SpringSpec(
            dampingRatio = Spring.DampingRatioNoBouncy,
            stiffness = Spring.StiffnessVeryLow,
            // The default threshold is 0.01, or 1% of the overall progress range, which is quite
            // large and noticeable. We purposefully choose a smaller threshold.
            visibilityThreshold = 1 / 1000f,
        )

The default androidx.compose.animation.core.AnimationSpec that should be used when animating between progress in a determinate progress indicator.

Functions

drawStopIndicator

Source set: Common
public fun drawStopIndicator(
        drawScope: DrawScope,
        stopSize: Dp,
        color: Color,
        strokeCap: StrokeCap,
    )

Draws the stop indicator at the end of the track.

Parameters

drawScope the DrawScope
stopSize size of this stop indicator, it cannot be bigger than the track's height
color color of this stop indicator
strokeCap stroke cap to use for the ends of this stop indicator