bmabir17 / google_maps_flutter_heatmap

google_maps_flutter_heatmap
BSD 3-Clause "New" or "Revised" License
8 stars 24 forks source link

How to solve dependency conflict between google_maps_flutter vs google_maps_flutter_heatmap in flutter ? #6

Open edimarmartins opened 3 years ago

edimarmartins commented 3 years ago

Hi ! In my project I'm using google_maps_flutter thats provide a method GoogleMapController.getZoomLevel() and so. If I declare both in pubspec.yaml: dependencies: flutter: sdk: flutter google_maps_flutter_heatmap: ^0.1.1+2 google_maps_flutter: ^2.0.6

I got the follow error to compile: error: constructor GoogleMapsPlugin in class GoogleMapsPlugin cannot be applied to given types; flutterEngine.getPlugins().add(new io.flutter.plugins.googlemaps.GoogleMapsPlugin());

required: Registrar found: no arguments reason: actual and formal argument lists differ in length 1 error

If I use only google_maps_flutter_heatmap it doesnt provide me the function getZoomLevel().

Do you have any tip how to use both in my project or is there a way to update google_maps_flutter_heatmap with new googlemaps functions ? Thanks

jonasPfeifhofer commented 2 years ago

Any updates here?