added loading indicator for mapview

This commit is contained in:
2024-03-26 21:41:42 +01:00
parent 10b0c59c3f
commit 7ce510e690
3 changed files with 44 additions and 3 deletions

View File

@ -2,11 +2,18 @@ import 'package:flutter/cupertino.dart';
class MapState extends ChangeNotifier {
bool _isLocationLock = false;
bool _isCurrentlyFetchin = true;
bool get followLocation => _isLocationLock;
bool get isCurrentlyFetching => _isCurrentlyFetchin;
toggleLocationLock() {
_isLocationLock = !_isLocationLock;
notifyListeners();
}
set setNetworkActivity(bool active) {
_isCurrentlyFetchin = active;
notifyListeners();
}
}