StylishCircularProgressIndicator

fun StylishCircularProgressIndicator(modifier: Modifier = Modifier, color: Color = MaterialTheme.colorScheme.primary, trackColor: Color = MaterialTheme.colorScheme.surfaceVariant, strokeWidth: Dp = 4.dp, strokeCap: StrokeCap = StrokeCap.Round, progress: () -> Float? = null)

A circular progress indicator styled with the Stylish theme. Wraps CircularProgressIndicator with theme-aware defaults for color, track color, and stroke cap.

When progress is null (default) the indicator animates indeterminately; when non-null, the determinate variant is shown with the arc filled up to the reported progress.

Parameters

modifier

Modifier applied to the indicator.

color

Color of the progress arc. Defaults to MaterialTheme.colorScheme.primary.

trackColor

Color of the background track. Defaults to MaterialTheme.colorScheme.surfaceVariant.

strokeWidth

Thickness of the arc stroke. Defaults to 4.dp.

strokeCap

Cap style for the arc endpoints. Defaults to StrokeCap.Round.

progress

Current progress in 0f..1f, or null (default) for an indeterminate indicator. Values outside the range are coerced into it by Material.

See also