From 3bc2b74f74b1e3d908f6f2bca802c9e5c657ce71 Mon Sep 17 00:00:00 2001 From: bossanyit Date: Mon, 15 May 2023 18:04:03 +0200 Subject: [PATCH] v1.1.3 CupertinoPicker Error fix --- README.md | 3 +++ lib/util/number_picker.dart | 8 +++----- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9825846..cd9c7f9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/util/number_picker.dart b/lib/util/number_picker.dart index cb83643..6c68412 100644 --- a/lib/util/number_picker.dart +++ b/lib/util/number_picker.dart @@ -67,7 +67,7 @@ class NumberPickerWidgetState extends State { 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 { 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))), ); } diff --git a/pubspec.yaml b/pubspec.yaml index 2fd69ab..3dcf85d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"