LinearProgressIndicator
fun LinearProgressIndicator(@FloatRange(from = 0.0, to = 1.0) progress: Float, modifier: Modifier = Modifier, color: Color = OrbitTheme.colors.primary.strong, backgroundColor: Color = OrbitTheme.colors.surface.normal, progressAnimationSpec: AnimationSpec<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. We purposefully choose a smaller threshold.
visibilityThreshold = 1 / 1000f,
))
Linear progress indicator.
Renders progress indicator in maximum available width with animated progress change.
To change the height or width, pass modifier with custom sizing.
To disable the animation, use androidx.compose.animation.core.snap animation spec.