Google is committed to advancing racial equity for Black communities. See how.

ProgressIndicatorConstants

object ProgressIndicatorConstants
kotlin.Any
   ↳ androidx.compose.material.ProgressIndicatorConstants

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Summary

Constants
const Float

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

Properties
SpringSpec<Float>

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

Dp

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

Constants

DefaultIndicatorBackgroundOpacity

const val DefaultIndicatorBackgroundOpacity: Float

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

Value: 0.24f

Properties

DefaultProgressAnimationSpec

val DefaultProgressAnimationSpec: SpringSpec<Float>

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

DefaultStrokeWidth

val DefaultStrokeWidth: 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.