SmartStepper constructor

const SmartStepper({
  1. Key? key,
  2. required int currentStep,
  3. required int totalSteps,
  4. Color? completeStepColor,
  5. Color? currentStepColor,
  6. Color? inactiveStepColor,
  7. Color? completeBorderColor,
  8. Color? currentBorderColor,
  9. Color? inactiveBorderColor,
  10. Color? completeLineColor,
  11. Color? currentLineColor,
  12. Color? inactiveLineColor,
  13. Color? currentTextColor,
  14. Color? completeTextColor,
  15. Color? inactiveTextColor,
  16. double? width,
  17. double? stepWidth = 30,
  18. double? stepHeight = 30,
  19. double? lineWidth = 60,
  20. double? lineHeight = 1,
  21. double? borderWidth = 2,
  22. double? lineBorderRadius = 0,
  23. bool isTextShowing = true,
  24. EdgeInsetsGeometry? padding,
  25. EdgeInsetsGeometry? linePadding,
  26. MainAxisAlignment? mainAxisAlignment,
  27. required dynamic onStepperTap(
    1. int
    ),
})

Implementation

const SmartStepper({
  super.key,
  required this.currentStep,
  required this.totalSteps,
  this.completeStepColor,
  this.currentStepColor,
  this.inactiveStepColor,
  this.completeBorderColor,
  this.currentBorderColor,
  this.inactiveBorderColor,
  this.completeLineColor,
  this.currentLineColor,
  this.inactiveLineColor,
  this.currentTextColor,
  this.completeTextColor,
  this.inactiveTextColor,
  this.width,
  this.stepWidth = 30,
  this.stepHeight = 30,
  this.lineWidth = 60,
  this.lineHeight = 1,
  this.borderWidth = 2,
  this.lineBorderRadius = 0,
  this.isTextShowing = true,
  this.padding,
  this.linePadding,
  this.mainAxisAlignment,
  required this.onStepperTap,
}) : assert(currentStep > 0 == true && currentStep <= totalSteps + 1);