StepperInput constructor

const StepperInput({
  1. Key? key,
  2. required num value,
  3. required ValueChanged<num> onChanged,
  4. num min = 0,
  5. num max = 99,
  6. num step = 1,
  7. String? label,
  8. double buttonSize = 36,
  9. TextStyle? textStyle,
  10. Color? activeColor,
  11. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)),
  12. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 4),
  13. Duration longPressRepeatDelay = const Duration(milliseconds: 80),
})

Implementation

const StepperInput({
  super.key,
  required this.value,
  required this.onChanged,
  this.min = 0,
  this.max = 99,
  this.step = 1,
  this.label,
  this.buttonSize = 36,
  this.textStyle,
  this.activeColor,
  this.borderRadius = const BorderRadius.all(Radius.circular(10)),
  this.padding = const EdgeInsets.symmetric(horizontal: 4),
  this.longPressRepeatDelay = const Duration(milliseconds: 80),
});