1/24/1
This commit is contained in:
@@ -15,7 +15,7 @@ class LocationController extends GetxController {
|
||||
late Location location;
|
||||
bool isLoading = false;
|
||||
bool isActive = false;
|
||||
LatLng myLocation = const LatLng(32.3, 36.3);
|
||||
late LatLng myLocation;
|
||||
String totalPoints = '0';
|
||||
LocationData? get currentLocation => _currentLocation;
|
||||
Timer? _locationTimer;
|
||||
@@ -24,9 +24,10 @@ class LocationController extends GetxController {
|
||||
void onInit() async {
|
||||
super.onInit();
|
||||
location = Location();
|
||||
getLocation();
|
||||
// myLocation=getLocation();
|
||||
|
||||
totalPoints = Get.find<CaptainWalletController>().totalPoints;
|
||||
getLocation();
|
||||
}
|
||||
|
||||
void startLocationUpdates() async {
|
||||
|
||||
Reference in New Issue
Block a user