Stylish Stepper
A horizontal step indicator (the web "Stepper" pattern from MUI and Chakra UI).
Each step is drawn as a numbered (or check-marked) circle connected by a line to the next step. Completed steps show a check mark, the current step is highlighted, and later steps are muted. Steps can be made tappable via onStepClick for free navigation through a flow.
Parameters
The step labels, in order.
Modifier applied to the root row.
Index of the active step. Defaults to 0.
Indices of steps that are already finished. Defaults to an empty set.
When false, step circles are not clickable.
Optional callback invoked when a step circle is tapped. When null, steps are display-only.
Diameter of each step circle. Defaults to 28 dp.
Thickness of the line between steps. Defaults to 2 dp.
Typography of the step labels. Defaults to MaterialTheme.typography.labelMedium.
Fill of completed step circles. Defaults to MaterialTheme.colorScheme.primary.
Fill of the current step circle. Defaults to MaterialTheme.colorScheme.primary.
Fill of future step circles. Defaults to MaterialTheme.colorScheme.surfaceVariant.
Icon/number color inside the circles. Defaults to MaterialTheme.colorScheme.onSurface.