SmartStepper constructor
const
SmartStepper({
- Key? key,
- required int currentStep,
- required int totalSteps,
- Color? completeStepColor,
- Color? currentStepColor,
- Color? inactiveStepColor,
- Color? completeBorderColor,
- Color? currentBorderColor,
- Color? inactiveBorderColor,
- Color? completeLineColor,
- Color? currentLineColor,
- Color? inactiveLineColor,
- Color? currentTextColor,
- Color? completeTextColor,
- Color? inactiveTextColor,
- double? width,
- double? stepWidth = 30,
- double? stepHeight = 30,
- double? lineWidth = 60,
- double? lineHeight = 1,
- double? borderWidth = 2,
- double? lineBorderRadius = 0,
- bool isTextShowing = true,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? linePadding,
- MainAxisAlignment? mainAxisAlignment,
- required dynamic onStepperTap(),
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);