added loading indicator for mapview

This commit is contained in:
MineTec committed 2024-03-26 21:41:42 +01:00
1 parent 10b0c59c3f
commit 7ce510e690
3 files changed
+44 -3

No files matched your search

+7
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();
}
}