Search code examples
firebaseflutterflutter-file

How do I change flutter_ling version in flutter project?


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

Solution

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