diff options
Diffstat (limited to 'lib/home.dart')
| -rw-r--r-- | lib/home.dart | 4 |
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 |
