This commit is contained in:
Hamza-Ayed
2024-09-17 00:31:50 +03:00
parent c24eee9e1d
commit 1b50de9a7c
12 changed files with 199 additions and 157 deletions

View File

@@ -246,10 +246,10 @@ class LoginController extends GetxController {
void onInit() async {
// permissionLocation = await Permission.locationWhenInUse.isGranted;
await getAppTester(AppInformation.appName);
if (isTest == 0 && box.read(BoxName.passengerID) != null) {
await loginUsingCredentials(
box.read(BoxName.passengerID), box.read(BoxName.email));
}
// if (isTest == 0 && box.read(BoxName.passengerID) != null) {
// await loginUsingCredentials(
// box.read(BoxName.passengerID), box.read(BoxName.email));
// }
super.onInit();
}
}

View File

@@ -232,9 +232,10 @@ class RegisterController extends GetxController {
print('WhatsApp message sent to non-Egyptian phone number: $phoneNumber');
}
isLoading = false;
update();
isSent = true;
remainingTime = 300; // Reset to 5 minutes
remainingTime = 300;
update(); // Reset to 5 minutes
startTimer();
}