Customizable, performant and vendor-free vector and raster maps, flutter wrapper for maplibre-native and maplibre-gl-js (fork of flutter-mapbox-gl/maps)
When requestMyLocationLatLng() is called with location service is disabled or permissions were denied, the call hangs indefinitely because of missing else branch which would submit the result here.
Steps to Reproduce
Disable location permissions
Call requestMyLocationLatLng()
Observe the call hanging
Expected Results
Exception describing that location is unavailable.
Actual Results
Call hangs.
Code Sample
final location = await _controller.requestMyLocationLatLng();
print(location)
Platforms
android
Version of flutter maplibre_gl
0.20.0
Bug Description
When
requestMyLocationLatLng()
is called with location service is disabled or permissions were denied, the call hangs indefinitely because of missing else branch which would submit the result here.Steps to Reproduce
requestMyLocationLatLng()
Expected Results
Exception describing that location is unavailable.
Actual Results
Call hangs.
Code Sample