4/2/1
This commit is contained in:
@@ -351,7 +351,8 @@ class OrderRequestPage extends StatelessWidget {
|
||||
'passengerWalletBurc': myList[26].toString(),
|
||||
'timeOfOrder': DateTime.now().toString(),
|
||||
'totalPassenger': myList[2].toString(),
|
||||
'carType':myList[31].toString(),
|
||||
'carType': myList[31].toString(),
|
||||
'kazan': myList[32].toString(),
|
||||
});
|
||||
},
|
||||
),
|
||||
|
||||
@@ -306,9 +306,9 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
'driver_id': box.read(BoxName.driverID),
|
||||
});
|
||||
// .then((value) {
|
||||
var json = jsonDecode(res);
|
||||
print('res $json');
|
||||
if (json['status'] == "failure") {
|
||||
// var json = jsonDecode(res);
|
||||
print('res $res');
|
||||
if (res == "failure") {
|
||||
Get.defaultDialog(
|
||||
title:
|
||||
"This ride is already taken by another driver."
|
||||
@@ -318,7 +318,7 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
middleTextStyle: AppStyle.title,
|
||||
confirm: MyElevatedButton(
|
||||
title: 'Ok'.tr, onPressed: () => Get.back()));
|
||||
} else if (json['status'] == "success") {
|
||||
} else if (jsonDecode(res)['status'] == "success") {
|
||||
List<String> bodyToPassenger = [
|
||||
box.read(BoxName.driverID).toString(),
|
||||
box.read(BoxName.nameDriver).toString(),
|
||||
@@ -374,6 +374,7 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
'timeOfOrder': DateTime.now().toString(),
|
||||
'totalPassenger': myList[2].toString(),
|
||||
'carType': myList[31].toString(),
|
||||
'kazan': myList[32].toString(),
|
||||
});
|
||||
}
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user