StepProgressIndicator constructor
const
StepProgressIndicator({
- required int totalSteps,
- Widget customStep()?,
- void Function() onTap()?,
- Color customColor()?,
- double customSize()?,
- double? selectedSize,
- double? unselectedSize,
- Radius? roundedEdges,
- Gradient? gradientColor,
- Gradient? selectedGradientColor,
- Gradient? unselectedGradientColor,
- BlendMode? blendMode,
- Axis direction = Axis.horizontal,
- TextDirection progressDirection = TextDirection.ltr,
- double size = 4.0,
- int currentStep = 0,
- Color selectedColor = Colors.blue,
- Color unselectedColor = Colors.grey,
- double padding = 2.0,
- double fallbackLength = 100.0,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment stepMainAxisAlignment = MainAxisAlignment.center,
- CrossAxisAlignment stepCrossAxisAlignment = CrossAxisAlignment.center,
- Key? key,
Implementation
const StepProgressIndicator({
required this.totalSteps,
this.customStep,
this.onTap,
this.customColor,
this.customSize,
this.selectedSize,
this.unselectedSize,
this.roundedEdges,
this.gradientColor,
this.selectedGradientColor,
this.unselectedGradientColor,
this.blendMode,
this.direction = Axis.horizontal,
this.progressDirection = TextDirection.ltr,
this.size = 4.0,
this.currentStep = 0,
this.selectedColor = Colors.blue,
this.unselectedColor = Colors.grey,
this.padding = 2.0,
this.fallbackLength = 100.0,
this.mainAxisAlignment = MainAxisAlignment.center,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.stepMainAxisAlignment = MainAxisAlignment.center,
this.stepCrossAxisAlignment = CrossAxisAlignment.center,
Key? key,
}) : assert(totalSteps > 0,
"Number of total steps (totalSteps) of the StepProgressIndicator must be greater than 0"),
assert(currentStep >= 0,
"Current step (currentStep) of the StepProgressIndicator must be greater than or equal to 0"),
assert(padding >= 0.0,
"Padding (padding) of the StepProgressIndicator must be greater or equal to 0"),
super(key: key);