Skip to main content

Module progress_indicator

Module progress_indicator 

Source
Expand description

Progress indicators following Jetpack Compose’s androidx.compose.material3.CircularProgressIndicator and LinearProgressIndicator (indeterminate variants).

The circular indicator draws an arc that continuously sweeps around a circle: the arc rotates at a constant speed while its sweep angle grows and shrinks, driven by rememberInfiniteTransition. The arc itself is rendered as a filled annular sector via VectorPath (there is no stroke primitive in the draw pipeline).

Constants§

CIRCULAR_INDICATOR_DIAMETER
Default diameter of CircularProgressIndicator in dp.
CIRCULAR_INDICATOR_STROKE_WIDTH
Default stroke width of CircularProgressIndicator in dp.
LINEAR_INDICATOR_HEIGHT
Default height of LinearProgressIndicator in dp.
LINEAR_INDICATOR_WIDTH
Default size of LinearProgressIndicator in dp.
PROGRESS_INDICATOR_COLOR
Default color for progress indicators (Material blue).

Functions§

CircularProgressIndicator
An indeterminate circular progress indicator (spinner).
LinearProgressIndicator
An indeterminate linear progress indicator.