Update: 2026-06-25 02:28:33
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:siro_rider/constant/links.dart';
|
||||
import 'package:siro_rider/controller/functions/crud.dart';
|
||||
import 'package:siro_rider/main.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:siro_rider/views/widgets/error_snakbar.dart';
|
||||
|
||||
import '../../print.dart';
|
||||
import '../../views/home/map_page_passenger.dart';
|
||||
@@ -68,10 +69,10 @@ class OtpVerificationController extends GetxController {
|
||||
isLoading.value = true;
|
||||
// بإمكانك عرض رسالة نجاح هنا
|
||||
} else {
|
||||
Get.snackbar('Error'.tr, 'Failed to send OTP'.tr);
|
||||
mySnackeBarError('Failed to send OTP'.tr);
|
||||
}
|
||||
} catch (e) {
|
||||
Get.snackbar('Error', e.toString());
|
||||
mySnackeBarError(e.toString());
|
||||
} finally {
|
||||
// isLoading.value = false;
|
||||
}
|
||||
@@ -107,10 +108,10 @@ class OtpVerificationController extends GetxController {
|
||||
|
||||
Get.offAll(() => const MapPagePassenger());
|
||||
} else {
|
||||
Get.snackbar('Verification Failed', 'OTP is incorrect or expired');
|
||||
mySnackeBarError('OTP is incorrect or expired');
|
||||
}
|
||||
} catch (e) {
|
||||
Get.snackbar('Error', e.toString());
|
||||
mySnackeBarError(e.toString());
|
||||
} finally {
|
||||
isVerifying.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user