diff --git a/analysis_options.yaml b/analysis_options.yaml index ace0476..a59736d 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -10,6 +10,14 @@ analyzer: errors: avoid_print: ignore + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** include: package:flutter_lints/flutter.yaml linter: diff --git a/lib/services/geolocation_service.dart b/lib/services/geolocation_service.dart index 8f1a24b..55cc7f3 100644 --- a/lib/services/geolocation_service.dart +++ b/lib/services/geolocation_service.dart @@ -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.'); } } diff --git a/pubspec.lock b/pubspec.lock index 822578f..883fd84 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -356,10 +356,10 @@ packages: dependency: transitive description: name: matcher - sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6" + sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd" url: "https://pub.dev" source: hosted - version: "0.12.18" + version: "0.12.20" material_color_utilities: dependency: transitive description: @@ -372,10 +372,10 @@ packages: dependency: transitive description: name: meta - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" + sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9" url: "https://pub.dev" source: hosted - version: "1.17.0" + version: "1.19.0" native_toolchain_c: dependency: transitive description: @@ -545,10 +545,10 @@ packages: dependency: transitive description: name: test_api - sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636" + sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11" url: "https://pub.dev" source: hosted - version: "0.7.9" + version: "0.7.12" typed_data: dependency: transitive description: @@ -641,10 +641,10 @@ packages: dependency: transitive description: name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + sha256: "92b9910f66ed1057fd4da7b040ae7c74cafacf885bdc81be496928d5049b032d" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.3" vm_service: dependency: transitive description: @@ -726,5 +726,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.10.7 <4.0.0" + dart: ">=3.11.0-0 <4.0.0" flutter: ">=3.38.4"