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

@@ -27,7 +27,7 @@ class HomeCaptainController extends GetxController {
String totalMoneyInSEFER = '0';
String totalDurationToday = '0';
Timer? timer;
late LatLng myLocation;
late LatLng myLocation = const LatLng(32, 36);
String totalPoints = '0';
String countRefuse = '0';
bool mapType = false;
@@ -179,11 +179,19 @@ class HomeCaptainController extends GetxController {
timer?.cancel();
}
getlocation() async {
isLoading = true;
print('isLoading $isLoading');
update();
await Get.find<LocationController>().getLocation();
isLoading = false;
update();
}
@override
void onInit() async {
await addToken();
// await Get.find<LocationController>().getLocation();
await getlocation();
onButtonSelected();
getPaymentToday();
getAllPayment();