|
|
|
|
@ -341,17 +341,15 @@ class _WelcomeLogin extends State<WelcomeLogin> {
|
|
|
|
|
.catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
ConfirmDialog dialog = new ConfirmDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
confirmMessage: err,
|
|
|
|
|
okText: TranslationBase.of(context).confirm,
|
|
|
|
|
cancelText: TranslationBase.of(context).cancel_nocaps,
|
|
|
|
|
okFunction: () => {
|
|
|
|
|
ConfirmDialog.closeAlertDialog(context),
|
|
|
|
|
Navigator.of(context).push(FadePage(page: RegisterNew())),
|
|
|
|
|
context.showBottomSheet(
|
|
|
|
|
child: ExceptionBottomSheet(
|
|
|
|
|
message: err.toString(),
|
|
|
|
|
showCancel: true,
|
|
|
|
|
onOkPressed: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
Navigator.of(context).push(FadePage(page: RegisterNew()));
|
|
|
|
|
},
|
|
|
|
|
cancelFunction: () => {});
|
|
|
|
|
dialog.showAlertDialog(context);
|
|
|
|
|
));
|
|
|
|
|
projectViewModel.analytics.loginRegistration.login_fail(error: err.toString());
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -508,7 +506,7 @@ class _WelcomeLogin extends State<WelcomeLogin> {
|
|
|
|
|
checkActivationCode(
|
|
|
|
|
value: code,
|
|
|
|
|
onWrongActivationCode: (String? message) {
|
|
|
|
|
// smsOtp.pauseTimer();
|
|
|
|
|
smsOtp.clearOTPInput(); // Clear the SMS code when wrong
|
|
|
|
|
context.showBottomSheet(
|
|
|
|
|
child: ExceptionBottomSheet(
|
|
|
|
|
message: message.toString(),
|
|
|
|
|
@ -637,13 +635,13 @@ class _WelcomeLogin extends State<WelcomeLogin> {
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
context.showBottomSheet(
|
|
|
|
|
child: ExceptionBottomSheet(
|
|
|
|
|
message: err.toString(),
|
|
|
|
|
onOkPressed: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
},
|
|
|
|
|
));
|
|
|
|
|
// context.showBottomSheet(
|
|
|
|
|
// child: ExceptionBottomSheet(
|
|
|
|
|
// message: err.toString(),
|
|
|
|
|
// onOkPressed: () {
|
|
|
|
|
// Navigator.of(context).pop();
|
|
|
|
|
// },
|
|
|
|
|
// ));
|
|
|
|
|
// print(err);
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
@ -679,13 +677,13 @@ class _WelcomeLogin extends State<WelcomeLogin> {
|
|
|
|
|
}
|
|
|
|
|
insertIMEI();
|
|
|
|
|
}).catchError((error) {
|
|
|
|
|
context.showBottomSheet(
|
|
|
|
|
child: ExceptionBottomSheet(
|
|
|
|
|
message: error.toString(),
|
|
|
|
|
onOkPressed: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
},
|
|
|
|
|
));
|
|
|
|
|
// context.showBottomSheet(
|
|
|
|
|
// child: ExceptionBottomSheet(
|
|
|
|
|
// message: error.toString(),
|
|
|
|
|
// onOkPressed: () {
|
|
|
|
|
// Navigator.of(context).pop();
|
|
|
|
|
// },
|
|
|
|
|
// ));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -705,13 +703,13 @@ class _WelcomeLogin extends State<WelcomeLogin> {
|
|
|
|
|
|
|
|
|
|
insertIMEI() {
|
|
|
|
|
authService.insertDeviceImei(selectedOption).then((value) => {}).catchError((err) {
|
|
|
|
|
context.showBottomSheet(
|
|
|
|
|
child: ExceptionBottomSheet(
|
|
|
|
|
message: err.toString(),
|
|
|
|
|
onOkPressed: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
},
|
|
|
|
|
));
|
|
|
|
|
// context.showBottomSheet(
|
|
|
|
|
// child: ExceptionBottomSheet(
|
|
|
|
|
// message: err.toString(),
|
|
|
|
|
// onOkPressed: () {
|
|
|
|
|
// Navigator.of(context).pop();
|
|
|
|
|
// },
|
|
|
|
|
// ));
|
|
|
|
|
// print(err);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|