fix : twice back press for exit application on live stock

This commit is contained in:
2025-08-25 09:56:50 +03:30
parent 80e3b01998
commit 3bd3ecbf50
4 changed files with 37 additions and 33 deletions

View File

@@ -67,7 +67,6 @@ class MapWidgetLogic extends GetxController with GetTickerProviderStateMixin {
super.onReady();
determineCurrentPosition();
getLoc();
}
@override
@@ -189,13 +188,12 @@ class MapWidgetLogic extends GetxController with GetTickerProviderStateMixin {
final newLat = currentPosition.latitude + (dy / 111000.0);
// 1 درجه lon ≈ 111km * cos(lat)
final newLng = currentPosition.longitude +
(dx / (111000.0 * cos(currentPosition.latitude * pi / 180)));
final newLng =
currentPosition.longitude + (dx / (111000.0 * cos(currentPosition.latitude * pi / 180)));
locations.add(LatLng(newLat, newLng));
}
return locations;
}
}