Stepper constructor
- {Key? key,
- required List<
Step> steps, - ScrollController? controller,
- ScrollPhysics? physics,
- StepperType type = StepperType.vertical,
- int currentStep = 0,
- ValueChanged<
int> ? onStepTapped, - VoidCallback? onStepContinue,
- VoidCallback? onStepCancel,
- ControlsWidgetBuilder? controlsBuilder,
- double? elevation,
- EdgeInsetsGeometry? margin,
- MaterialStateProperty<
Color> ? connectorColor, - double? connectorThickness,
- StepIconBuilder? stepIconBuilder}
Creates a stepper from a list of steps.
This widget is not meant to be rebuilt with a different list of steps unless a key is provided in order to distinguish the old stepper from the new one.
Implementation
const Stepper({
super.key,
required this.steps,
this.controller,
this.physics,
this.type = StepperType.vertical,
this.currentStep = 0,
this.onStepTapped,
this.onStepContinue,
this.onStepCancel,
this.controlsBuilder,
this.elevation,
this.margin,
this.connectorColor,
this.connectorThickness,
this.stepIconBuilder,
}) : assert(0 <= currentStep && currentStep < steps.length);