fix : twice back press for exit application on live stock
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user