NumberPickerWidget constructor

const NumberPickerWidget({
  1. Key? key,
  2. Color triangleColor = const Color(0xffFB8C00),
  3. Color boxBackgroundColor = const Color(0xFFF3DFD2),
  4. Color numberColor = const Color(0xFFDCC1AE),
  5. Color selectedNumberColor = Colors.black,
  6. int minValue = 0,
  7. int maxValue = 99,
  8. int value = 0,
  9. ValueChanged<int>? onValueChanged,
  10. int itemCount = 5,
  11. int step = 1,
  12. double itemHeight = 76,
  13. double itemWidth = 124,
  14. Axis axis = Axis.vertical,
  15. TextStyle? textStyle,
  16. TextStyle? selectedTextStyle,
  17. bool haptics = true,
  18. TextMapper? textMapper,
  19. bool zeroPad = true,
  20. Decoration? decoration,
  21. bool infiniteLoop = true,
})

Implementation

const NumberPickerWidget({
  super.key,
  this.triangleColor = const Color(0xffFB8C00),
  this.boxBackgroundColor = const Color(0xFFF3DFD2),
  this.numberColor = const Color(0xFFDCC1AE),
  this.selectedNumberColor = Colors.black,

  this.minValue = 0,
  this.maxValue = 99,
  this.value = 0,
  this.onValueChanged,

  this.itemCount = 5,
  this.step = 1,
  this.itemHeight = 76,
  this.itemWidth = 124,
  this.axis = Axis.vertical,
  this.textStyle,
  this.selectedTextStyle,
  this.haptics = true,
  this.textMapper,
  this.zeroPad = true,
  this.decoration,
  this.infiniteLoop = true,
});