diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 0c688c86..80259752 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -2,10 +2,10 @@ PODS: - Alamofire (5.6.2) - apple_maps_flutter (0.0.1): - Flutter - - audioplayers_darwin (0.0.1): - - Flutter - background_fetch (1.1.6): - Flutter + - background_locator_2 (0.0.1): + - Flutter - battery_plus (1.0.0): - Flutter - clipboard_watcher (0.0.1): @@ -96,8 +96,8 @@ PODS: DEPENDENCIES: - apple_maps_flutter (from `.symlinks/plugins/apple_maps_flutter/ios`) - - audioplayers_darwin (from `.symlinks/plugins/audioplayers_darwin/ios`) - background_fetch (from `.symlinks/plugins/background_fetch/ios`) + - background_locator_2 (from `.symlinks/plugins/background_locator_2/ios`) - battery_plus (from `.symlinks/plugins/battery_plus/ios`) - clipboard_watcher (from `.symlinks/plugins/clipboard_watcher/ios`) - device_info_plus (from `.symlinks/plugins/device_info_plus/ios`) @@ -135,10 +135,10 @@ SPEC REPOS: EXTERNAL SOURCES: apple_maps_flutter: :path: ".symlinks/plugins/apple_maps_flutter/ios" - audioplayers_darwin: - :path: ".symlinks/plugins/audioplayers_darwin/ios" background_fetch: :path: ".symlinks/plugins/background_fetch/ios" + background_locator_2: + :path: ".symlinks/plugins/background_locator_2/ios" battery_plus: :path: ".symlinks/plugins/battery_plus/ios" clipboard_watcher: @@ -187,8 +187,8 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Alamofire: d368e1ff8a298e6dde360e35a3e68e6c610e7204 apple_maps_flutter: c59725efea39e13e703cde52a1d2b14866ad68a8 - audioplayers_darwin: 877d9a4d06331c5c374595e46e16453ac7eafa40 background_fetch: bc9b44b0bf8b434e282a2ac9be8662800a0296ed + background_locator_2: bc8a422343ab656d5bd98e08694c6f89fef20418 battery_plus: 9bff772a7e5e4d5381ca3ca92a97373a3d8b2738 clipboard_watcher: 86fb70421aca6f4944e0591a8292605da7784666 device_info_plus: 7545d84d8d1b896cb16a4ff98c19f07ec4b298ea @@ -221,4 +221,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 819f6e738594296500811eae0a41f3dceed5a207 -COCOAPODS: 1.11.3 +COCOAPODS: 1.12.1 diff --git a/lib/screens/LocationsOverviewScreen.dart b/lib/screens/LocationsOverviewScreen.dart index 7d16483c..fb503a3b 100644 --- a/lib/screens/LocationsOverviewScreen.dart +++ b/lib/screens/LocationsOverviewScreen.dart @@ -1339,7 +1339,7 @@ class _LocationsOverviewScreenState extends State width: null, borderRadius: BorderRadius.circular(HUGE_SPACE), padding: EdgeInsets.zero, - child: IconButton( + child: PlatformIconButton( color: shades[400], icon: Icon(disableShowDetailedLocations ? MdiIcons.mapMarkerMultipleOutline diff --git a/lib/screens/view_alarm_screen_widgets/ViewAlarmSelectRadiusBasedScreen.dart b/lib/screens/view_alarm_screen_widgets/ViewAlarmSelectRadiusBasedScreen.dart index 8bddf78a..4a19c0ca 100644 --- a/lib/screens/view_alarm_screen_widgets/ViewAlarmSelectRadiusBasedScreen.dart +++ b/lib/screens/view_alarm_screen_widgets/ViewAlarmSelectRadiusBasedScreen.dart @@ -307,6 +307,7 @@ class _ViewAlarmSelectRadiusBasedScreenState center: alarmCenter, radius: radius, flutterMapController: flutterMapController, + appleMapController: appleMapController, onLocationChange: (location) { // Proximity does not need a center if (widget.type == LocationAlarmType.proximity) { diff --git a/lib/widgets/RequestBatteryOptimizationsDisabledMixin.dart b/lib/widgets/RequestBatteryOptimizationsDisabledMixin.dart index 08be96d9..81e436c4 100644 --- a/lib/widgets/RequestBatteryOptimizationsDisabledMixin.dart +++ b/lib/widgets/RequestBatteryOptimizationsDisabledMixin.dart @@ -1,12 +1,13 @@ +import 'dart:io'; + import 'package:disable_battery_optimization/disable_battery_optimization.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; +import 'package:locus/services/settings_service/index.dart'; import 'package:locus/utils/repeatedly-check.dart'; import 'package:locus/utils/theme.dart'; import 'package:provider/provider.dart'; -import 'package:flutter_gen/gen_l10n/app_localizations.dart'; - -import 'package:locus/services/settings_service/index.dart'; mixin RequestBatteryOptimizationsDisabledMixin { BuildContext get context; @@ -14,6 +15,10 @@ mixin RequestBatteryOptimizationsDisabledMixin { bool get mounted; Future showDisableBatteryOptimizationsDialog() async { + if (!Platform.isAndroid) { + return true; + } + final settings = context.read(); final status =