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

StrokeWidth

Source set: Common
val StrokeWidth = 4.dp

Default stroke width for CircularProgressIndicator, and default height for LinearProgressIndicator.

This can be customized with the strokeWidth parameter on CircularProgressIndicator, and by passing a layout modifier setting the height for LinearProgressIndicator.

IndicatorBackgroundOpacity

Source set: Common
const val IndicatorBackgroundOpacity = 0.24f

The default opacity applied to the indicator color to create the background color in a LinearProgressIndicator.

ProgressAnimationSpec

Source set: Common
val ProgressAnimationSpec =
    SpringSpec(
        dampingRatio = Spring.DampingRatioNoBouncy,
        stiffness = Spring.StiffnessVeryLow,
        visibilityThreshold = 1 / 1000f,
    )

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

Last updated: