flutter_google_places icon indicating copy to clipboard operation
flutter_google_places copied to clipboard

package not compatible with http 1.1.0

Open Eslam0mansour opened this issue 1 year ago • 2 comments

package not compatible with http 1.1.0

Eslam0mansour avatar Apr 03 '24 06:04 Eslam0mansour

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.

prateek-aib avatar May 01 '24 09:05 prateek-aib

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

hoc081098 avatar Jun 18 '24 11:06 hoc081098