object ProgressIndicatorDefaults
Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.
Properties
val linearColor: Color
Default color for a linear progress indicator.
val circularColor: Color
Default color for a circular progress indicator.
val linearTrackColor: Color
Default track color for a linear progress indicator.
Deprecated Renamed to circularDeterminateTrackColor or circularIndeterminateTrackColor
val circularTrackColor: Color
Default track color for a circular progress indicator.
val circularDeterminateTrackColor: Color
Default track color for a circular determinate progress indicator.
val circularIndeterminateTrackColor: Color
Default track color for a circular indeterminate progress indicator.
val CircularStrokeWidth: Dp
Default stroke width for a circular progress indicator.
val LinearStrokeCap: StrokeCap
Default stroke cap for a linear progress indicator.
val CircularDeterminateStrokeCap: StrokeCap
Default stroke cap for a determinate circular progress indicator.
val CircularIndeterminateStrokeCap: StrokeCap
Default stroke cap for an indeterminate circular progress indicator.
@ExperimentalMaterial3Api
val LinearTrackStopIndicatorSize: Dp
Default track stop indicator size for a linear progress indicator.
@ExperimentalMaterial3Api
val LinearIndicatorTrackGapSize: Dp
Default indicator track gap size for a linear progress indicator.
@ExperimentalMaterial3Api
val CircularIndicatorTrackGapSize: Dp
Default indicator track gap size for a circular progress indicator.
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 |