NumberStepper constructor
NumberStepper({
- List<
int> ? numbers, - bool enableNextPreviousButtons = true,
- bool enableStepTapping = true,
- Icon? previousButtonIcon,
- Icon? nextButtonIcon,
- OnStepReached? onStepReached,
- Axis direction = Axis.horizontal,
- TextStyle numberStyle = const TextStyle(color: Colors.black),
- Color? stepColor,
- double stepPadding = 0.0,
- Color? activeStepColor,
- Color? activeStepBorderColor,
- double activeStepBorderWidth = 0.5,
- double activeStepBorderPadding = 1.0,
- Color? lineColor,
- double lineLength = 50.0,
- double lineDotRadius = 1.0,
- double stepRadius = 24.0,
- Curve stepReachedAnimationEffect = Curves.bounceOut,
- Duration stepReachedAnimationDuration = const Duration(seconds: 1),
- bool steppingEnabled = true,
- bool scrollingDisabled = false,
- int activeStep = 0,
- AlignmentGeometry alignment = Alignment.center,
Creates a NumberStepper widget.
Implementation
NumberStepper({
this.numbers,
this.enableNextPreviousButtons = true,
this.enableStepTapping = true,
this.previousButtonIcon,
this.nextButtonIcon,
this.onStepReached,
this.direction = Axis.horizontal,
this.numberStyle = const TextStyle(color: Colors.black),
this.stepColor,
this.stepPadding = 0.0,
this.activeStepColor,
this.activeStepBorderColor,
this.activeStepBorderWidth = 0.5,
this.activeStepBorderPadding = 1.0,
this.lineColor,
this.lineLength = 50.0,
this.lineDotRadius = 1.0,
this.stepRadius = 24.0,
this.stepReachedAnimationEffect = Curves.bounceOut,
this.stepReachedAnimationDuration = const Duration(seconds: 1),
this.steppingEnabled = true,
this.scrollingDisabled = false,
this.activeStep = 0,
this.alignment = Alignment.center,
});