bpillon/google_maps_cluster_manager

Error after updating flutter

Opened this issue · 2 comments

guns28 commented

after updating i'm facing this issue here :

 Future<Marker> Function(Cluster<Place>) get _markerBuilder =>
      (cluster) async {}
  

ClusterManager _initClusterManager() {
    return ClusterManager<Place>(items, _updateMarkers,
        markerBuilder: _markerBuilder);
  }

The argument type 'Future Function(Cluster)' can't be assigned to the parameter type 'Future Function(dynamic)?

Styort commented

I recently got the same error. Has anyone solved it?
Also build failed with error:
../../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/google_maps_cluster_manager-3.1.0/lib/src/cluster_manager.dart:8:1: Error: 'Cluster' is imported from both 'package:google_maps_cluster_manager/src/cluster.dart' and 'package:google_maps_flutter_platform_interface/src/types/cluster.dart'.

Styort commented

The reason and solution to the issue is described here