SquareSegmentedProgressIndicator

fun SquareSegmentedProgressIndicator(modifier: Modifier = Modifier, progress: Float, strokeWidth: Dp = ProgressIndicatorDefaults.StrokeWidth, trackColor: Color = MaterialTheme.colors.onBackground.copy(alpha = 0.1f), cornerRadiusDp: Dp = 10.dp, trackSegments: List<ProgressIndicatorSegment>, paddingDp: Dp = ProgressIndicatorDefaults.StrokeWidth)

SquareSegmentedProgressIndicator represents a segmented progress indicator with square shape.

Parameters

modifier

The modifier to be applied to the layout.

progress

The current progress of the indicator. This must be between 0f and 1f

strokeWidth

The stroke width for the progress indicator.

trackSegments

A list of ProgressIndicatorSegment definitions, specifying the properties of each segment.

trackColor

The color of the track that is drawn behind the indicator color of the track sections.

cornerRadiusDp

Radius of the corners that are on the square. If this is 0.dp it is a normal square.

paddingDp

This is the size of the gaps for each segment.