LinearProgressIndicatorSample
@Sampled
@Composable
fun LinearProgressIndicatorSample() {
val progress = 0.5f
// Animate progress changes, as the indicator doesn't animate between values.
val animatedProgress by animateFloatAsState(targetValue = progress)
LinearProgressIndicator(progress = { animatedProgress })
}
IndeterminateLinearProgressIndicatorSample
@Sampled
@Composable
fun IndeterminateLinearProgressIndicatorSample() {
LinearProgressIndicator()
}