This commit is contained in:
Hamza-Ayed
2024-01-24 01:58:52 +03:00
parent 8aaca3630d
commit 1eab187076
13 changed files with 299 additions and 189 deletions

View File

@@ -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 {