Merge branch 'main' of https://gitea.joshihomeserver.ipv64.net/josiadmin/flutter_tank_web_app
This commit is contained in:
@@ -17,7 +17,7 @@ class GeolocationService {
|
||||
// 1. Prüfen, ob Standortdienste aktiviert sind
|
||||
serviceEnabled = await Geolocator.isLocationServiceEnabled();
|
||||
if (!serviceEnabled) {
|
||||
return Future.error('Standortdienste sind deaktiviert.');
|
||||
return await Future.error('Standortdienste sind deaktiviert.');
|
||||
}
|
||||
|
||||
hasLocation = serviceEnabled;
|
||||
@@ -29,7 +29,7 @@ class GeolocationService {
|
||||
hasLocation = true;
|
||||
if (permission == LocationPermission.denied) {
|
||||
hasLocation = false;
|
||||
return Future.error('Berechtigung verweigert.');
|
||||
return await Future.error('Berechtigung verweigert.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user