Object

ProgressIndicatorDefaults

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Source set: Common
public object ProgressIndicatorDefaults

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Properties

StrokeWidth

Source set: Common
public val StrokeWidth: Dp = 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
public const val IndicatorBackgroundOpacity: Float = 0.24f

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

ProgressAnimationSpec

Source set: Common
public val ProgressAnimationSpec: SpringSpec<Float> =
        SpringSpec(
            dampingRatio = Spring.DampingRatioNoBouncy,
            stiffness = Spring.StiffnessVeryLow,
            // The default threshold is 0.01, or 1% of the overall progress range, which is quite
            // large and noticeable.
            visibilityThreshold = 1 / 1000f,
        )

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: