diegoveloper / flutter_percent_indicator

Flutter percent indicator library
BSD 2-Clause "Simplified" License
677 stars 206 forks source link

Version 4.2.2 not Compatible with Flutter version 2.10.3 (Dart version 2.16.1) #183

Closed Rui-Trindade406 closed 1 year ago

Rui-Trindade406 commented 1 year ago

Hello I have the 2.10.3 flutter version in my code. Screenshot 2022-10-31 at 12 04 27

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

Screenshot 2022-10-31 at 12 01 06

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.

Screenshot 2022-10-31 at 12 09 17

Screenshot 2022-10-31 at 12 11 05 Screenshot 2022-10-31 at 12 11 18

Please help me understand this issue Thank you for your attention

diegoveloper commented 1 year ago

Use this version 2.1.9+1 or upgrade your flutter version

Rui-Trindade406 commented 1 year ago

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.

Screenshot 2022-10-31 at 15 28 00

diegoveloper commented 1 year ago

my recommendation is to update your flutter version, 2.10 is too low, the current stable version is 3.3.6

Rui-Trindade406 commented 1 year ago

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?

diegoveloper commented 1 year ago

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).

Rui-Trindade406 commented 1 year ago

then I suggest you change the min Dart version number since it is misleading

diegoveloper commented 1 year ago

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

Rui-Trindade406 commented 1 year ago

do you know there is no flutter version 2.12.

Screenshot 2022-10-31 at 16 11 46

this is my limitation of my app. For sdk you allow older than the null safety is introduced, but then you limit the flutter version...

diegoveloper commented 1 year ago

Another solution is fork the project and change as you want