How do I change flutter_ling version in flutter project?

486 views Asked by At

Here I trying to add dependency

geoflutterfire: ^3.0.3

After adding this line in pubspec.yml I presses pub get to get all package which I listed in it. But I got an error something about flutter_lint version

Running "flutter pub get" in example...
Because example depends on geoflutterfire ^3.0.3 which depends on flutter_lints ^1.0.0, flutter_lints ^1.0.0 is required.
So, because example depends on flutter_lints ^2.0.0, version solving failed.
pub get failed (1; So, because example depends on flutter_lints ^2.0.0, version solving failed.)
2

There are 2 answers

0
Dexter Fury Kombat Zone On BEST ANSWER

I also faced the same problem and solved it by downgrading this version of geoflutterfire: ^3.0.3 to geoflutterfire: ^3.0.2. I hope it works for you too.

0
HMAD On

Downgrading version of geoflutterfire: ^3.0.3 to geoflutterfire: ^3.0.2 will cause multiple errors if you are using firebase_core and cloud_firestore. What worked for me was that I used geoflutterfire2. It has pub point 140/140 and hopefully will work for you as well