fix navigator issues

register_patient_services
Elham Rababh 4 years ago
parent 52ec3fc0e3
commit eb89dc3395

@ -550,10 +550,15 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
Helpers.showErrorToast(authenticationViewModel.error);
} else {
await authenticationViewModel.onCheckActivationCodeSuccess();
if(value !=null)
Navigator.pop(context);
Navigator.pop(context);
navigateToLandingPage();
if(value !=null){
if(Navigator.canPop(context))
Navigator.pop(context);
}
if(Navigator.canPop(context))
Navigator.pop(context);
navigateToLandingPage();
}
}

Loading…
Cancel
Save