summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-01-21 18:31:44 -0500
committerMica White <botahamec@outlook.com>2026-01-21 18:31:44 -0500
commitb174505c193c1bbed7cfd77f8eafaf9cb9675750 (patch)
treef3cd522e0017bd4e9402599ec3c36b232f1610b3
parent52175e7774d7205c6b9e717d8acc956c48f83c78 (diff)
Attempt to fix geolocator
-rw-r--r--lib/home.dart4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/home.dart b/lib/home.dart
index fd2e278..b9dce40 100644
--- a/lib/home.dart
+++ b/lib/home.dart
@@ -48,6 +48,10 @@ class _HomePageState extends State<HomePage> {
});
}
});
+ _positionStream?.onError((error) {
+ _positionStream?.cancel();
+ Timer(Duration(seconds: 1), () => _initPositionStream(locationAccuracy));
+ });
}
@override