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 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 CircularDeterminateStrokeCapStrokeCap

Default stroke cap for a determinate circular progress indicator.

CircularIndeterminateStrokeCap

val CircularIndeterminateStrokeCapStrokeCap

Default stroke cap for an indeterminate circular progress indicator.

CircularIndicatorTrackGapSize

@ExperimentalMaterial3Api
val CircularIndicatorTrackGapSizeDp

Default indicator track gap size for a circular progress indicator.

CircularStrokeWidth

val CircularStrokeWidthDp

Default stroke width for a circular progress indicator.

LinearIndicatorTrackGapSize

@ExperimentalMaterial3Api
val LinearIndicatorTrackGapSizeDp

Default indicator track gap size for a linear progress indicator.

LinearStrokeCap

val LinearStrokeCapStrokeCap

Default stroke cap for a linear progress indicator.

LinearTrackStopIndicatorSize

@ExperimentalMaterial3Api
val LinearTrackStopIndicatorSizeDp

Default track stop indicator size for a linear progress indicator.

ProgressAnimationSpec

val ProgressAnimationSpecSpringSpec<Float>

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

circularColor

val circularColorColor

Default color for a circular progress indicator.

circularDeterminateTrackColor

val circularDeterminateTrackColorColor

Default track color for a circular determinate progress indicator.

circularIndeterminateTrackColor

val circularIndeterminateTrackColorColor

Default track color for a circular indeterminate progress indicator.

circularTrackColor

val circularTrackColorColor

Default track color for a circular progress indicator.

linearColor

val linearColorColor

Default color for a linear progress indicator.

linearTrackColor

val linearTrackColorColor

Default track color for a linear progress indicator.