This commit is contained in:
Hamza Aleghwairyeen
2024-04-04 15:04:11 +03:00
parent b1310c832d
commit db216342cd
6 changed files with 230 additions and 196 deletions

View File

@@ -23,10 +23,14 @@ class HistoryCaptainController extends GetxController {
var res = await CRUD().get(
link: AppLink.getDriverOrder,
payload: {'driver_id': box.read(BoxName.driverID)});
historyData = jsonDecode(res);
print(historyData);
isloading = false;
update();
if (res != 'failure') {
historyData = jsonDecode(res);
print(historyData);
isloading = false;
update();
} else {
Get.defaultDialog(title: 'Not found');
}
}
getHistoryDetails(String orderId) async {