CircularProgressIndicator
Determinate Material Design circular progress indicator.
Progress indicators express an unspecified wait time or display the duration of a process.
By default there is no animation between progress values. You can use ProgressIndicatorDefaults.ProgressAnimationSpec as the default recommended AnimationSpec when animating progress, such as in the following example:
Parameters
the progress of this progress indicator, where 0.0 represents no progress and 1.0 represents full progress. Values outside of this range are coerced into the range.
the Modifier to be applied to this progress indicator
color of this progress indicator
stroke width of this progress indicator
color of the track behind the indicator, visible when the progress has not reached the area of the overall indicator yet
stroke cap to use for the ends of this progress indicator
size of the gap between the progress indicator and the track
Samples
androidx.compose.material3.samples.CircularProgressIndicatorSampleIndeterminate Material Design circular progress indicator.
Progress indicators express an unspecified wait time or display the duration of a process.
Parameters
the Modifier to be applied to this progress indicator
color of this progress indicator
stroke width of this progress indicator
color of the track behind the indicator, visible when the progress has not reached the area of the overall indicator yet
stroke cap to use for the ends of this progress indicator
Samples
androidx.compose.material3.samples.IndeterminateCircularProgressIndicatorSampleDeprecated
Use the overload that takes `progress` as a lambda
Replace with
CircularProgressIndicator(
progress = { progress },
modifier = modifier,
color = color,
strokeWidth = strokeWidth,
trackColor = trackColor,
strokeCap = strokeCap,
)