This commit is contained in:
Hamza-Ayed
2023-11-09 18:26:11 +03:00
parent 8238323dd3
commit ebde8bb44d
29 changed files with 1667 additions and 819 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 HomeCaptain());
Get.offAll(() => HomeCaptain());
isloading = false;
update();
print(box.read(BoxName.driverID).toString());
@@ -101,7 +101,7 @@ class LoginCaptinController extends GetxController {
}
void loginByBoxData() async {
Get.to(() => const HomeCaptain());
Get.to(() => HomeCaptain());
await CRUD().post(link: AppLink.addTokensDriver, payload: {
'token': box.read(BoxName.tokenDriver).toString(),
'captain_id': box.read(BoxName.driverID).toString()

View File

@@ -56,7 +56,7 @@ class RegisterController extends GetxController {
update();
}
sendverfications() async {
sendVerifications() async {
var res = await CRUD().post(link: AppLink.verifyEmail, payload: {
'email': emailController.text,
'token': verfyCode.text,