Update: 2026-06-26 17:29:23

This commit is contained in:
Hamza-Ayed
2026-06-26 17:29:23 +03:00
parent a323da29aa
commit 9ded734e38
139 changed files with 1815 additions and 2676 deletions

View File

@@ -300,7 +300,7 @@ class LoginController extends GetxController {
if (decoded is! Map || decoded.isEmpty) return;
if (decoded['status'] == 'failure' || decoded['status'] == 'Failure') {
mySnackeBarError("User does not exist.".tr);
mySnackbarError("User does not exist.".tr);
return;
}
@@ -444,7 +444,7 @@ class LoginController extends GetxController {
Get.offAll(() => const MapPagePassenger());
} catch (e) {
addError('$e', 'loginUsingCredentials');
mySnackeBarError(e.toString());
mySnackbarError(e.toString());
} finally {
isloading = false;
update();

View File

@@ -42,11 +42,11 @@ class PhoneAuthHelper {
mySnackbarSuccess('An OTP has been sent to your number.'.tr);
return true;
} else {
mySnackeBarError(data['message'] ?? 'Failed to send OTP.');
mySnackbarError(data['message'] ?? 'Failed to send OTP.');
return false;
}
} else {
mySnackeBarError('Server error. Please try again.'.tr);
mySnackbarError('Server error. Please try again.'.tr);
return false;
}
} catch (e) {
@@ -87,13 +87,13 @@ class PhoneAuthHelper {
Get.to(() => RegistrationScreen(phoneNumber: phoneNumber));
}
} else {
mySnackeBarError(data['message']);
mySnackbarError(data['message']);
}
} else {
mySnackeBarError('Server error. Please try again.'.tr);
mySnackbarError('Server error. Please try again.'.tr);
}
} catch (e) {
mySnackeBarError('An error occurred: $e');
mySnackbarError('An error occurred: $e');
}
}
@@ -133,12 +133,12 @@ class PhoneAuthHelper {
await _handleSuccessfulLogin(data['message']['data']);
} else {
mySnackeBarError(
mySnackbarError(
"User with this phone number or email already exists.".tr);
}
} catch (e) {
Log.print('e: ${e}');
mySnackeBarError('An error occurred: $e');
mySnackbarError('An error occurred: $e');
}
}

View File

@@ -308,17 +308,17 @@ class RegisterController extends GetxController {
box.read(BoxName.email).toString(),
);
} else {
mySnackeBarError("The email or phone number is already registered.".tr);
mySnackbarError("The email or phone number is already registered.".tr);
}
} else {
mySnackeBarError("phone not verified".tr);
mySnackbarError("phone not verified".tr);
}
} else {
mySnackeBarError("you must insert token code".tr);
mySnackbarError("you must insert token code".tr);
}
} catch (e) {
addError(e.toString(), 'passenger sign up ');
mySnackeBarError("Something went wrong. Please try again.".tr);
mySnackbarError("Something went wrong. Please try again.".tr);
}
}

View File

@@ -69,10 +69,10 @@ class OtpVerificationController extends GetxController {
isLoading.value = true;
// بإمكانك عرض رسالة نجاح هنا
} else {
mySnackeBarError('Failed to send OTP'.tr);
mySnackbarError('Failed to send OTP'.tr);
}
} catch (e) {
mySnackeBarError(e.toString());
mySnackbarError(e.toString());
} finally {
// isLoading.value = false;
}
@@ -108,10 +108,10 @@ class OtpVerificationController extends GetxController {
Get.offAll(() => const MapPagePassenger());
} else {
mySnackeBarError('OTP is incorrect or expired');
mySnackbarError('OTP is incorrect or expired');
}
} catch (e) {
mySnackeBarError(e.toString());
mySnackbarError(e.toString());
} finally {
isVerifying.value = false;
}