Closed ElectricArdvark closed 9 months ago
Fixed in 8.0.6
Seems to happen also when changing Geolocator settings
CurrentLocationLayer(
positionStream: const LocationMarkerDataStreamFactory()
.fromGeolocatorPositionStream(
stream: Geolocator.getPositionStream(
locationSettings: AndroidSettings(
intervalDuration:
Duration(milliseconds: 1000)),
),
),
),
You may want to create the stream in initState()
or widget constructor, otherwise a new stream is created for every widget build and the widget consider the stream is changed. I will check the example project to see if they need to be updated.
Describe the bug When ever there is a setState implemented in code either in the FlutterMap or a FAB the Geolocator seems to stop the start again and on every click this comes up in the debug console: E/FlutterGeolocator( 3840): Geolocator position updates stopped E/FlutterGeolocator( 3840): There is still another flutter engine connected, not stopping location service E/FlutterGeolocator( 3840): Geolocator position updates started
To Reproduce Running this code should get you the same issue
Smartphone:
Additional context This all could be simply an issue on my m