v1.1.3 CupertinoPicker Error fix

This commit is contained in:
bossanyit 2023-05-15 18:04:03 +02:00
parent a0108baffd
commit 3bc2b74f74
3 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,8 @@
Workout Test and Diet 4 You Common Util Functions
### Version 1.1.3
- CupertinoPicker error in Flutter 3.10 stable
### Version 1.1.2
- Flutter SDK < 4.0.0

View File

@ -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))),
);
}

View File

@ -1,6 +1,6 @@
name: workouttest_util
description: Workout Test app and web functions.
version: 1.1.2
version: 1.1.3
environment:
sdk: ">=2.18.6 <4.0.0"