Here’s an example of what the result might look like:
Parameters
elementBuilder: A builder for the content of the stepper.
badgeBuilder: A builder for the badge.
badgePosition: Determines the alignment of the badge. Options include StepperBadgePosition.start, StepperBadgePosition.center, or StepperBadgePosition.end.
pathBuilder: A builder for the main path (e.g., a line, dotted line, etc.). This is the most commonly used path.
subPathBuilder: A builder for the secondary path, used when badgePosition is set to StepperBadgePosition.center. This path is displayed under the badge and allows you to control its visibility based on the active step.
elementCount: The number of elements in the stepper.
inverted: A flag to invert the position of the path and badge relative to the element. By default, this is false, and for vertical steppers, the path appears on the left. When set to true, the path appears on the right. For horizontal steppers, the path appears on the top and when set to true, the path appears on the bottom.
For example, if you set inverted to true and badgePosition to StepperBadgePosition.center, the result will look like this:
Horizontal Stepper
To create a horizontal stepper, set stepperDirection to Axis.horizontal.