mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-06 04:37:56 +02:00
retry for location permission when follow-me enabled
This commit is contained in:
@@ -32,10 +32,10 @@ class MapView extends StatefulWidget {
|
||||
final VoidCallback onUserGesture;
|
||||
|
||||
@override
|
||||
State<MapView> createState() => _MapViewState();
|
||||
State<MapView> createState() => MapViewState();
|
||||
}
|
||||
|
||||
class _MapViewState extends State<MapView> {
|
||||
class MapViewState extends State<MapView> {
|
||||
late final MapController _controller;
|
||||
final Debouncer _cameraDebounce = Debouncer(kDebounceCameraRefresh);
|
||||
final Debouncer _tileDebounce = Debouncer(const Duration(milliseconds: 150));
|
||||
@@ -84,6 +84,12 @@ class _MapViewState extends State<MapView> {
|
||||
if (mounted) setState(() {});
|
||||
}
|
||||
|
||||
/// Public method to retry location initialization (e.g., after permission granted)
|
||||
void retryLocationInit() {
|
||||
debugPrint('[MapView] Retrying location initialization');
|
||||
_initLocation();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void _refreshCamerasFromProvider() {
|
||||
|
||||
Reference in New Issue
Block a user