update to rog_only

This commit is contained in:
Mohamed Nouffer
2023-06-11 21:03:30 +05:30
parent 08332d45d4
commit 6c8ac75b19
6 changed files with 149 additions and 305 deletions

View File

@ -510,6 +510,9 @@ class DestinationController extends GetxController {
current_lat = position != null ? position.latitude : 0;
current_lon = position != null ? position.longitude : 0;
indexController.current_lat = position != null ? position.latitude : 0;
current_lon = position != null ? position.longitude : 0;
print("==== gps skip is : ${skip_gps.toString()}, selected is ${is_gps_selected} , ${current_lat}");
if(is_gps_selected.value){
@ -721,7 +724,7 @@ class DestinationController extends GetxController {
DestinationService.getDestinationLine(points, matrix)?.then((value){
indexController.routePoints = value;
indexController.routePointLenght.value = indexController.routePoints.length;
Get.toNamed(AppPages.TRAVEL);
//Get.toNamed(AppPages.TRAVEL);
});
destinationCount.value = destinations.length;
}