StepIndicator constructor
const
StepIndicator({
- Key? key,
- List<
String> steps = const ["Request", "Pending", "Confirmed", "Completed"], - StepIndicatorState? state,
- double circleRadius = 20.0,
- double lineHeight = 8.0,
- double fontSize = 10.0,
- double paddingHorizontal = 32.0,
- double sideLineLength = 20.0,
- Color activeColor = const Color(0xff003285),
- Color inactiveColor = const Color(0xFFB0BEC5),
- Color activeLineColor = const Color(0xFF1A237E),
- Color inactiveLineColor = const Color(0xFFE0E0E0),
- IconData activeIcon = Icons.check,
- IconData leftArrowIcon = Icons.arrow_right_alt,
- IconData rightArrowIcon = Icons.arrow_right_alt,
- double iconSize = 20.0,
- TextStyle? labelTextStyle,
- Duration animationDuration = const Duration(milliseconds: 300),
- Widget? previousButton,
- Widget? nextButton,
- bool showStepsText = true,
- bool allowCircleTap = true,
- int initialStep = 0,
- void onStepChanged()?,
- StepIndicatorDesign design = StepIndicatorDesign.circle,
Implementation
const StepIndicator({
super.key,
this.steps = const ["Request", "Pending", "Confirmed", "Completed"],
this.state,
this.circleRadius = 20.0,
this.lineHeight = 8.0,
this.fontSize = 10.0,
this.paddingHorizontal = 32.0,
this.sideLineLength = 20.0,
this.activeColor = const Color(0xff003285),
this.inactiveColor = const Color(0xFFB0BEC5),
this.activeLineColor = const Color(0xFF1A237E),
this.inactiveLineColor = const Color(0xFFE0E0E0),
this.activeIcon = Icons.check,
this.leftArrowIcon = Icons.arrow_right_alt,
this.rightArrowIcon = Icons.arrow_right_alt,
this.iconSize = 20.0,
this.labelTextStyle,
this.animationDuration = const Duration(milliseconds: 300),
this.previousButton,
this.nextButton,
this.showNavigationButtons = true,
this.showStepsText = true,
this.allowCircleTap = true,
this.initialStep = 0,
this.onStepChanged,
this.design = StepIndicatorDesign.circle,
});