This commit is contained in:
Mohamed Nouffer
2022-07-23 19:28:35 +05:30
parent 596ca077af
commit 7739fecdf7
10 changed files with 201 additions and 49 deletions

View File

@ -150,7 +150,7 @@ class DestinationController extends GetxController {
PopulateDestinations();
print("------ in iniit");
//print("------ in iniit");
@ -195,14 +195,14 @@ class DestinationController extends GetxController {
indexController.rogMapController!.move(LatLng(position!.latitude, position!.longitude), czoom);
//String user_id = indexController.currentUser[0]["user"]["id"].toString();
//TrackingService.addTrack(user_id, position!.latitude, position.longitude).then((val){
print("---- postion is ${position.latitude}, ${position.longitude}");
//print("---- postion is ${position.latitude}, ${position.longitude}");
gps.clear();
gps.add("-- lat : ${position.latitude}, lon : ${position.longitude} --");
checkForCheckin(position!.latitude, position.longitude);
//});
}
print(position == null ? 'Unknown' : 'current position is ${position.latitude.toString()}, ${position.longitude.toString()}');
//print(position == null ? 'Unknown' : 'current position is ${position.latitude.toString()}, ${position.longitude.toString()}');
});
} catch (err){
locationPermission.clear();