added loading indicator for mapview
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user