NumberPickerWidget constructor
const
NumberPickerWidget({
- Key? key,
- Color triangleColor = const Color(0xffFB8C00),
- Color boxBackgroundColor = const Color(0xFFF3DFD2),
- Color numberColor = const Color(0xFFDCC1AE),
- Color selectedNumberColor = Colors.black,
- int minValue = 0,
- int maxValue = 99,
- int value = 0,
- ValueChanged<
int> ? onValueChanged, - int itemCount = 5,
- int step = 1,
- double itemHeight = 76,
- double itemWidth = 124,
- Axis axis = Axis.vertical,
- TextStyle? textStyle,
- TextStyle? selectedTextStyle,
- bool haptics = true,
- TextMapper? textMapper,
- bool zeroPad = true,
- Decoration? decoration,
- 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,
});