ProgressIndicatorDefaults


Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Summary

Public functions

Unit
drawStopIndicator(
    drawScope: DrawScope,
    stopSize: Dp,
    color: Color,
    strokeCap: StrokeCap
)

Draws the stop indicator at the end of the track.

Cmn

Public properties

StrokeCap

Default stroke cap for a determinate circular progress indicator.

Cmn
StrokeCap

Default stroke cap for an indeterminate circular progress indicator.

Cmn
Dp

Default indicator track gap size for a circular progress indicator.

Cmn
Dp

Default stroke width for a circular progress indicator.

Cmn
Dp

Default indicator track gap size for a linear progress indicator.

Cmn
StrokeCap

Default stroke cap for a linear progress indicator.

Cmn
Dp

Default track stop indicator size for a linear progress indicator.

Cmn
SpringSpec<Float>

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

Cmn
Color

Default color for a circular progress indicator.

Cmn
Color

Default track color for a circular determinate progress indicator.

Cmn
Color

Default track color for a circular indeterminate progress indicator.

Cmn
Color

This property is deprecated. Renamed to circularDeterminateTrackColor or circularIndeterminateTrackColor

Cmn
Color

Default color for a linear progress indicator.

Cmn
Color

Default track color for a linear progress indicator.

Cmn

Public functions

drawStopIndicator

fun drawStopIndicator(
    drawScope: DrawScope,
    stopSize: Dp,
    color: Color,
    strokeCap: StrokeCap
): Unit

Draws the stop indicator at the end of the track.

Parameters
drawScope: DrawScope

the DrawScope

stopSize: Dp

size of this stop indicator, it cannot be bigger than the track's height

color: Color

color of this stop indicator

strokeCap: StrokeCap

stroke cap to use for the ends of this stop indicator

Public properties

CircularDeterminateStrokeCap

val CircularDeterminateStrokeCap: StrokeCap

Default stroke cap for a determinate circular progress indicator.

CircularIndeterminateStrokeCap

val CircularIndeterminateStrokeCap: StrokeCap

Default stroke cap for an indeterminate circular progress indicator.

CircularIndicatorTrackGapSize

val CircularIndicatorTrackGapSize: Dp

Default indicator track gap size for a circular progress indicator.

CircularStrokeWidth

val CircularStrokeWidth: Dp

Default stroke width for a circular progress indicator.

LinearIndicatorTrackGapSize

val LinearIndicatorTrackGapSize: Dp

Default indicator track gap size for a linear progress indicator.

LinearStrokeCap

val LinearStrokeCap: StrokeCap

Default stroke cap for a linear progress indicator.

LinearTrackStopIndicatorSize

val LinearTrackStopIndicatorSize: Dp

Default track stop indicator size for a linear progress indicator.

ProgressAnimationSpec

val ProgressAnimationSpec: SpringSpec<Float>

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

circularColor

val circularColor: Color

Default color for a circular progress indicator.

circularDeterminateTrackColor

val circularDeterminateTrackColor: Color

Default track color for a circular determinate progress indicator.

circularIndeterminateTrackColor

val circularIndeterminateTrackColor: Color

Default track color for a circular indeterminate progress indicator.

circularTrackColor

val circularTrackColor: Color

Default track color for a circular progress indicator.

linearColor

val linearColor: Color

Default color for a linear progress indicator.

linearTrackColor

val linearTrackColor: Color

Default track color for a linear progress indicator.