fluttercommunity / flutter_google_places

Google Places - Google places autocomplete widgets for flutter. No wrapper, use https://pub.dev/packages/google_maps_webservice. Maintainer: @juliansteenbakker
https://pub.dev/packages/flutter_google_places
Other
303 stars 413 forks source link

package not compatible with http 1.1.0 #230

Open Eslam0mansour opened 4 months ago

Eslam0mansour commented 4 months ago

package not compatible with http 1.1.0

prateek-aib commented 3 months ago

Got this while trying to add the package

prata@prateek rapsap-flutter % flutter pub add flutter_google_places
The current Dart SDK version is 3.3.4.

Because google_fonts >=4.0.5 depends on http ^1.0.0 and flutter_google_places >=0.3.0 depends on http ^0.13.1, google_fonts >=4.0.5 is incompatible with flutter_google_places >=0.3.0.
And because flutter_google_places <0.3.0 doesn't support null safety, google_fonts >=4.0.5 is incompatible with flutter_google_places.
So, because rapsap depends on both google_fonts ^6.2.1 and flutter_google_places any, version solving failed.

The lower bound of "sdk: '>=2.0.0-dev <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety

If http 1.1.0 doesn't work, bumping to 1.0.0 will still be helpful.

hoc081098 commented 2 months ago

Try using https://pub.dev/packages/flutter_google_places_hoc081098