fixed issues for release

This commit is contained in:
2023-11-21 22:43:28 +05:30
parent acc03f8e2b
commit 8a1e5b1ca8
5 changed files with 324 additions and 276 deletions

View File

@ -675,13 +675,13 @@ class DestinationController extends GetxController {
Destination des = festuretoDestination(gfs);
//print("=== gfs == ${des.toMap()}");
print("=== gfs == ${des.toMap()}");
double distanceToDest = double.infinity;
var distance = const Distance();
distanceToDest = distance.as(LengthUnit.Meter,
LatLng(currentLat, currentLon), LatLng(des.lat!, des.lon!));
//print("==== dist==${distanceToDest}");
print("==== dist==${distanceToDest}");
return distanceToDest;
}
@ -936,6 +936,9 @@ class DestinationController extends GetxController {
//print("-----populated----- ${d.toMap()}");
destinations.add(d);
}
if (destinations.isEmpty) {
rogainingCounted.value = false;
}
// destinationCount.value = 0;
//print(
// "------ destination controller destinationcount-------- $destinationCount-------- :::::");