2026-02-21-overlay
This commit is contained in:
@@ -201,6 +201,8 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
||||
String passengerName = title;
|
||||
String pickup = 'موقع الانطلاق';
|
||||
String dropoff = 'موقع الوصول';
|
||||
double pLat = 0.0;
|
||||
double pLng = 0.0;
|
||||
|
||||
if (myList.isNotEmpty && myList.length > 29) {
|
||||
fare = double.tryParse(myList[26].toString()) ?? 0.0;
|
||||
@@ -208,6 +210,10 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
||||
passengerName = myList[8].toString();
|
||||
pickup = myList[29].toString();
|
||||
dropoff = myList[30].toString();
|
||||
|
||||
// 🔴 استخراج الإحداثيات للخريطة (تأكد من الاندكس الخاص بخطوط الطول والعرض في مصفوفتك)
|
||||
pLat = double.tryParse(myList[0].toString()) ?? 0.0;
|
||||
pLng = double.tryParse(myList[1].toString()) ?? 0.0;
|
||||
}
|
||||
|
||||
final tripData = TripData(
|
||||
@@ -218,8 +224,8 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
||||
distanceKm: distance,
|
||||
estimatedFare: fare,
|
||||
estimatedMinutes: 0,
|
||||
pickupLat: 0.0,
|
||||
pickupLng: 0.0,
|
||||
pickupLat: pLat, // تمرير خط العرض
|
||||
pickupLng: pLng, // تمرير خط الطول
|
||||
);
|
||||
|
||||
bool isAppInForeground = box.read(BoxName.isAppInForeground) ?? false;
|
||||
|
||||
Reference in New Issue
Block a user