1

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.)
4
  • can you share the snapshot of pubspec.yaml file Commented May 6, 2022 at 19:13
  • did you tried to add dependency of flutter_lints:^2.0.0 manually? Commented May 6, 2022 at 19:23
  • yes I already tried Commented May 6, 2022 at 19:56
  • you should add flutter_lints: ^1.0.0 not 2, if its added already then downgrade its version Commented May 6, 2022 at 23:16

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.