Version 4.2.2 not Compatible with Flutter version 2.10.3 (Dart version 2.16.1)
Rui-Trindade406 opened this issue · 9 comments
Hello I have the 2.10.3 flutter version in my code.
And when I try to upgrade my version to use the 4.2.2 I receive that the Flutter version is insufficient to upgrade your package. displays the following message
According to the package page you support Dart sdk 2.12.0. Which according to Flutter documentation my version is 2.16.1 as shown below.
Please help me understand this issue
Thank you for your attention
Use this version 2.1.9+1
or upgrade your flutter version
I can use the version 4.2.1 but the 4.2.2 does that error. your package from one version to the next raises the sdk version but does not advertise in the package info. And you should correct the information if it is not correct.
the Dart version is not the flutter version the dart version 2.12 is before referring to 2.0.0 Flutter version.
my recommendation is to update your flutter version, 2.10 is too low, the current stable version is 3.3.6
I get that it's some months old but to change to the new one just because of one package that didn't follow the norms obeyed by other flutter packages should not be your response. Can't you see that your package breaks on a minor release, should that not be clear in your version log?
We don't add dart version on the README of the package, you can check the min version on the releases , https://pub.dev/packages/percent_indicator/versions you can see.
4.2.2 supports Dart 2.12 but it's using Flutter 3.x+ (We restricted the flutter sdk version on that version).
You should update to Flutter 3.x otherwise you will find more errors on other packages or you will use packages with a lot of bugs (fixed on newer versions).
then I suggest you change the min Dart version number since it is misleading
you can check the restrictions here, this is open source, everyone can check this -> https://github.com/diegoveloper/flutter_percent_indicator/blob/master/pubspec.yaml#L12
Another solution is fork the project and change as you want