v1.1.3 CupertinoPicker Error fix
This commit is contained in:
@@ -67,7 +67,7 @@ class NumberPickerWidgetState extends State<NumberPickerWidget> {
|
||||
scrollController: _scrollController,
|
||||
useMagnifier: true,
|
||||
magnification: 1.2,
|
||||
diameterRatio: widget.diameterRatio!,
|
||||
//diameterRatio: widget.diameterRatio!,
|
||||
backgroundColor: Colors.transparent,
|
||||
selectionOverlay: Container(),
|
||||
onSelectedItemChanged: (x) {
|
||||
@@ -80,10 +80,8 @@ class NumberPickerWidgetState extends State<NumberPickerWidget> {
|
||||
widget.onChange(value);
|
||||
},
|
||||
itemExtent: widget.itemExtent!,
|
||||
children: List.generate(
|
||||
widget.maxValue,
|
||||
(index) => Text('$index ${widget.unit}',
|
||||
style: TextStyle(color: widget.color, fontSize: widget.fontSize, fontWeight: widget.fontWeight))),
|
||||
children: List.generate(widget.maxValue,
|
||||
(index) => Text('$index ${widget.unit}', style: TextStyle(color: widget.color, fontSize: widget.fontSize, fontWeight: widget.fontWeight))),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user