This commit is contained in:
Hamza-Ayed
2023-09-25 02:48:18 +03:00
parent ebcc644d8c
commit 7290e5ecc7
8 changed files with 172 additions and 38 deletions

View File

@@ -60,7 +60,7 @@ class LoginCaptinController extends GetxController {
box.write(BoxName.phoneDriver, jsonDecoeded['data'][0]['phone']);
SecureStorage()
.saveData(BoxName.passwordDriver, passwordController.text);
Get.offAll(() => const HomeCaptin());
Get.offAll(() => const HomeCaptain());
isloading = false;
update();
print(box.read(BoxName.driverID).toString());
@@ -101,7 +101,7 @@ class LoginCaptinController extends GetxController {
}
void loginByBoxData() async {
Get.to(() => const HomeCaptin());
Get.to(() => const HomeCaptain());
await CRUD().post(link: AppLink.addTokensDriver, payload: {
'token': box.read(BoxName.tokenDriver).toString(),
'captain_id': box.read(BoxName.driverID).toString()