This commit is contained in:
Hamza-Ayed
2024-03-22 00:03:46 +03:00
parent 045f7e20f0
commit 5c702e7d06
8 changed files with 71 additions and 84 deletions

View File

@@ -650,8 +650,16 @@ update ui for totla results
// Add a new marker with the ID `MyLocation` at the current location of the user.
LocationController locationController = Get.find<LocationController>();
myLocation = locationController.myLocation;
final previousLocationOfDrivers = await sql.getCustomQuery(
'Select * from ${TableName.carLocations} where order_id =$rideId Order by created_at DESC limit 1');
final previousLocationOfDrivers = await sql.getCustomQuery('''SELECT
*
FROM
${TableName.carLocations}
WHERE
order_id = $rideId
ORDER BY
created_at DESC
LIMIT
1''');
//get from sql
if (previousLocationOfDrivers.isNotEmpty) {