This commit is contained in:
Hamza-Ayed
2023-12-31 00:11:49 +03:00
parent 1b9b0dc9e8
commit c2dc5ec44c
21 changed files with 792 additions and 496 deletions

View File

@@ -180,7 +180,7 @@ class HomeCaptainController extends GetxController {
@override
void onInit() async {
addToken();
await addToken();
onButtonSelected();
getPaymentToday();
getAllPayment();
@@ -191,11 +191,11 @@ class HomeCaptainController extends GetxController {
}
addToken() async {
box.write(BoxName.statusDriverLocation, 'off');
await CRUD().post(link: AppLink.addTokensDriver, payload: {
'token': box.read(BoxName.tokenDriver),
'captain_id': box.read(BoxName.driverID).toString()
}).then((value) => print('Token Added'));
box.write(BoxName.statusDriverLocation, 'off');
}
getPaymentToday() async {