Update: 2026-08-08 14:09:20

This commit is contained in:
Hamza-Ayed
2026-08-08 14:09:20 +03:00
parent c8e8e481a6
commit 8395436f23
14 changed files with 295 additions and 104 deletions
@@ -45,7 +45,10 @@ class DestinationController extends GetxController {
if (response != null && response is Map && response['status'] == 'success') {
final data = response['message'];
if (data != null) {
// عند غياب وجهة نشطة يردّ السيرفر نصاً ("No active destination set.")
// لا خريطة، وفهرسته كخريطة كان يرمي
// type 'String' is not a subtype of type 'int'.
if (data is Map) {
final lat = double.tryParse(data['target_latitude']?.toString() ?? '0') ?? 0.0;
final lng = double.tryParse(data['target_longitude']?.toString() ?? '0') ?? 0.0;
activeLatLng = LatLng(lat, lng);