This commit is contained in:
2026-09-25 16:47:00 +02:00
3 changed files with 19 additions and 11 deletions
+2 -2
View File
@@ -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.');
}
}