3/21/2
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user