tlserver / flutter_map_location_marker

A flutter map plugin for displaying device current location.
https://pub.dev/packages/flutter_map_location_marker
BSD 3-Clause "New" or "Revised" License
97 stars 81 forks source link

Incompatible with flutter_map in github's master branch #28

Closed stx closed 2 years ago

stx commented 2 years ago

Error: The parameter 'stream' of the method 'LocationMarkerPlugin.createLayer' has type 'Stream', which does not match the corresponding type, 'Stream', in the overridden method, 'MapPlugin.createLayer'.

MapPlugin.createLayer now uses Stream instead of Stream:

https://github.com/fleaflet/flutter_map/blob/master/lib/src/plugins/plugin.dart

Sahkay commented 2 years ago

I was able to fix it in my project by changing the references from Stream<Null> to Stream<void> without any issues so far. Should be in lib/src/plugin.dart and lib/src/layer.dart

pablojimpas commented 2 years ago

This package depends on the latest published version flutter_map: ^0.14.0.

Keep an eye on https://github.com/fleaflet/flutter_map/issues/1188 to upgrade this package when a new tagged version is available.