google_maps_cluster_manager icon indicating copy to clipboard operation
google_maps_cluster_manager copied to clipboard

Error after updating flutter

Open guns28 opened this issue 10 months ago • 2 comments

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<Marker> Function(Cluster<Place>)' can't be assigned to the parameter type 'Future<Marker> Function(dynamic)?

guns28 avatar Mar 27 '24 18:03 guns28

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 avatar Mar 28 '24 07:03 Styort

The reason and solution to the issue is described here

Styort avatar Mar 28 '24 07:03 Styort