|
|
|
@ -619,7 +619,7 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
int.tryParse(AppState().memberLoginList?.pMOBILENUMBER ?? ""),
|
|
|
|
int.tryParse(AppState().memberLoginList?.pMOBILENUMBER ?? ""),
|
|
|
|
(value, TextEditingController _pinPutController) async {
|
|
|
|
(value, TextEditingController _pinPutController) async {
|
|
|
|
Utils.showLoading(context);
|
|
|
|
Utils.showLoading(context);
|
|
|
|
try {
|
|
|
|
//try {
|
|
|
|
GenericResponseModel? genericResponseModel = await LoginApiClient().checkActivationCode(true, AppState().memberLoginList?.pMOBILENUMBER, value, AppState().getUserName);
|
|
|
|
GenericResponseModel? genericResponseModel = await LoginApiClient().checkActivationCode(true, AppState().memberLoginList?.pMOBILENUMBER, value, AppState().getUserName);
|
|
|
|
GenericResponseModel? genericResponseModel1 = await LoginApiClient().insertMobileLoginInfoNEW(
|
|
|
|
GenericResponseModel? genericResponseModel1 = await LoginApiClient().insertMobileLoginInfoNEW(
|
|
|
|
AppState().memberLoginList?.pEMAILADDRESS ?? "",
|
|
|
|
AppState().memberLoginList?.pEMAILADDRESS ?? "",
|
|
|
|
@ -648,22 +648,22 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
Navigator.pop(context);
|
|
|
|
Navigator.pop(context);
|
|
|
|
Navigator.pushNamedAndRemoveUntil(context, AppRoutes.dashboard, (Route<dynamic> route) => false);
|
|
|
|
Navigator.pushNamedAndRemoveUntil(context, AppRoutes.dashboard, (Route<dynamic> route) => false);
|
|
|
|
} catch (ex) {
|
|
|
|
// } catch (ex) {
|
|
|
|
print(ex);
|
|
|
|
// print(ex);
|
|
|
|
_pinPutController.clear();
|
|
|
|
// _pinPutController.clear();
|
|
|
|
otpFieldClear.value = "";
|
|
|
|
// otpFieldClear.value = "";
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
// Utils.hideLoading(context);
|
|
|
|
Utils.handleException(ex, context, null);
|
|
|
|
// Utils.handleException(ex, context, null);
|
|
|
|
dynamic errorCode = ex;
|
|
|
|
// dynamic errorCode = ex;
|
|
|
|
if(errorCode.error.errorStatusCode ==699){
|
|
|
|
// if(errorCode.error.errorStatusCode ==699){
|
|
|
|
Future.delayed(const Duration(seconds: 2), ()
|
|
|
|
// Future.delayed(const Duration(seconds: 2), ()
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
Navigator.pop(context);
|
|
|
|
// Navigator.pop(context);
|
|
|
|
Navigator.pushNamedAndRemoveUntil(
|
|
|
|
// Navigator.pushNamedAndRemoveUntil(
|
|
|
|
context, AppRoutes.login, (Route<dynamic> route) => false);
|
|
|
|
// context, AppRoutes.login, (Route<dynamic> route) => false);
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
() => {
|
|
|
|
() => {
|
|
|
|
Navigator.pop(context),
|
|
|
|
Navigator.pop(context),
|
|
|
|
|