Update: 2026-08-08 14:09:20
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user