This commit is contained in:
Hamza-Ayed
2024-07-10 17:19:08 +03:00
parent 71e53b3d8d
commit 43eb600fbf
23 changed files with 181 additions and 141 deletions

View File

@@ -313,7 +313,12 @@ class HomeCaptainController extends GetxController {
payload: {'driverID': box.read(BoxName.driverID).toString()});
data = jsonDecode(res);
totalMoneyInSEFER = data['message'][0]['total_amount'];
totalMoneyInSEFER = data['message'][0]['total_amount'] ?? '0';
update();
}
void changeToAppliedRide(String status) {
box.write(BoxName.rideStatus, status);
update();
}