Object

ProgressIndicatorDefaults

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Source set: Common
object ProgressIndicatorDefaults

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Properties

linearColor

Source set: Common
val linearColor: Color

Default color for a linear progress indicator.

circularColor

Source set: Common
val circularColor: Color

Default color for a circular progress indicator.

linearTrackColor

Source set: Common
val linearTrackColor: Color

Default track color for a linear progress indicator.

circularTrackColor

Deprecated

Renamed to circularDeterminateTrackColor or circularIndeterminateTrackColor

Source set: Common
val circularTrackColor: Color

Default track color for a circular progress indicator.

circularDeterminateTrackColor

Source set: Common
val circularDeterminateTrackColor: Color

Default track color for a circular determinate progress indicator.

circularIndeterminateTrackColor

Source set: Common
val circularIndeterminateTrackColor: Color

Default track color for a circular indeterminate progress indicator.

CircularStrokeWidth

Source set: Common
val CircularStrokeWidth: Dp

Default stroke width for a circular progress indicator.

LinearStrokeCap

Source set: Common
val LinearStrokeCap: StrokeCap

Default stroke cap for a linear progress indicator.

CircularDeterminateStrokeCap

Source set: Common
val CircularDeterminateStrokeCap: StrokeCap

Default stroke cap for a determinate circular progress indicator.

CircularIndeterminateStrokeCap

Source set: Common
val CircularIndeterminateStrokeCap: StrokeCap

Default stroke cap for an indeterminate circular progress indicator.

LinearTrackStopIndicatorSize

Source set: Common
@ExperimentalMaterial3Api
val LinearTrackStopIndicatorSize: Dp

Default track stop indicator size for a linear progress indicator.

LinearIndicatorTrackGapSize

Source set: Common
@ExperimentalMaterial3Api
val LinearIndicatorTrackGapSize: Dp

Default indicator track gap size for a linear progress indicator.

CircularIndicatorTrackGapSize

Source set: Common
@ExperimentalMaterial3Api
val CircularIndicatorTrackGapSize: Dp

Default indicator track gap size for a circular progress indicator.

ProgressAnimationSpec

Source set: Common
val ProgressAnimationSpec =
    SpringSpec(
        dampingRatio = Spring.DampingRatioNoBouncy,
        stiffness = Spring.StiffnessVeryLow,
        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

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

Last updated: