diff --git a/lib/bridge/location_bridge.dart b/lib/bridge/location_bridge.dart index 682fb92..b83dbdb 100644 --- a/lib/bridge/location_bridge.dart +++ b/lib/bridge/location_bridge.dart @@ -1,4 +1,5 @@ import 'dart:async'; +import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; class LocationBridge { @@ -16,7 +17,7 @@ class LocationBridge { final result = await _methodChannel.invokeMethod('startTracking'); return result ?? false; } on PlatformException catch (e) { - print('Failed to start tracking: ${e.message}'); + debugPrint('Failed to start tracking: ${e.message}'); return false; } } @@ -26,7 +27,7 @@ class LocationBridge { final result = await _methodChannel.invokeMethod('stopTracking'); return result ?? false; } on PlatformException catch (e) { - print('Failed to stop tracking: ${e.message}'); + debugPrint('Failed to stop tracking: ${e.message}'); return false; } } @@ -39,7 +40,7 @@ class LocationBridge { ); return result ?? false; } on PlatformException catch (e) { - print('Failed to update config: ${e.message}'); + debugPrint('Failed to update config: ${e.message}'); return false; } } @@ -49,7 +50,7 @@ class LocationBridge { final result = await _methodChannel.invokeMethod('getStatus'); return result?.cast(); } on PlatformException catch (e) { - print('Failed to get status: ${e.message}'); + debugPrint('Failed to get status: ${e.message}'); return null; } } @@ -60,4 +61,4 @@ class LocationBridge { ); return _locationStream!; } -} +} \ No newline at end of file diff --git a/lib/settings_screen.dart b/lib/settings_screen.dart index 2b22215..bddc061 100644 --- a/lib/settings_screen.dart +++ b/lib/settings_screen.dart @@ -139,6 +139,7 @@ class _SettingsScreenState extends State { Widget _buildAccuracyDropdown() { return DropdownButtonFormField( + // ignore: deprecated_member_use value: _accuracy, decoration: const InputDecoration(labelText: 'Accuracy'), items: const [