NumberStepper constructor

NumberStepper({
  1. List<int>? numbers,
  2. bool enableNextPreviousButtons = true,
  3. bool enableStepTapping = true,
  4. Icon? previousButtonIcon,
  5. Icon? nextButtonIcon,
  6. OnStepReached? onStepReached,
  7. Axis direction = Axis.horizontal,
  8. TextStyle numberStyle = const TextStyle(color: Colors.black),
  9. Color? stepColor,
  10. double stepPadding = 0.0,
  11. Color? activeStepColor,
  12. Color? activeStepBorderColor,
  13. double activeStepBorderWidth = 0.5,
  14. double activeStepBorderPadding = 1.0,
  15. Color? lineColor,
  16. double lineLength = 50.0,
  17. double lineDotRadius = 1.0,
  18. double stepRadius = 24.0,
  19. Curve stepReachedAnimationEffect = Curves.bounceOut,
  20. Duration stepReachedAnimationDuration = const Duration(seconds: 1),
  21. bool steppingEnabled = true,
  22. bool scrollingDisabled = false,
  23. int activeStep = 0,
  24. 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,
});