Enhance location handling and UI updates

- Refactor location permission handling in SparseLocationLogger
- Add updateMyLocation method to SparseLocationLogger
- Introduce new contact handling in MeshCoreConnector
- Update map screen with a new option to refresh location
- Add localization for "Update Location" in app_en.arb
- Adjust payload types in meshcore_protocol.dart
This commit is contained in:
Winston Lowe
2026-02-13 16:51:41 -08:00
parent 1603adf5dd
commit 49665fd563
6 changed files with 276 additions and 30 deletions
+11
View File
@@ -275,6 +275,17 @@ class _MapScreenState extends State<MapScreen> {
),
),
),
PopupMenuItem(
child: Row(
children: [
const Icon(Icons.refresh),
const SizedBox(width: 8),
Text(context.l10n.map_updateMyLocation),
],
),
onTap: () =>
connector.sparseLocationLogger?.updateMyLocation(),
),
],
icon: const Icon(Icons.more_vert),
),
-1
View File
@@ -3,7 +3,6 @@ import 'package:meshcore_open/utils/gpx_export.dart';
import 'package:meshcore_open/widgets/elements_ui.dart';
import 'package:provider/provider.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:meshcore_open/services/sparse_location_logger.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';