StepIndicator constructor

const StepIndicator({
  1. Key? key,
  2. List<String> steps = const ["Request", "Pending", "Confirmed", "Completed"],
  3. StepIndicatorState? state,
  4. double circleRadius = 20.0,
  5. double lineHeight = 8.0,
  6. double fontSize = 10.0,
  7. double paddingHorizontal = 32.0,
  8. double sideLineLength = 20.0,
  9. Color activeColor = const Color(0xff003285),
  10. Color inactiveColor = const Color(0xFFB0BEC5),
  11. Color activeLineColor = const Color(0xFF1A237E),
  12. Color inactiveLineColor = const Color(0xFFE0E0E0),
  13. IconData activeIcon = Icons.check,
  14. IconData leftArrowIcon = Icons.arrow_right_alt,
  15. IconData rightArrowIcon = Icons.arrow_right_alt,
  16. double iconSize = 20.0,
  17. TextStyle? labelTextStyle,
  18. Duration animationDuration = const Duration(milliseconds: 300),
  19. Widget? previousButton,
  20. Widget? nextButton,
  21. bool showNavigationButtons = true,
  22. bool showStepsText = true,
  23. bool allowCircleTap = true,
  24. int initialStep = 0,
  25. void onStepChanged(
    1. int
    )?,
  26. 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,
});