|
|
|
|
@ -45,7 +45,7 @@ class VerificationMethodsScreen extends StatefulWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ProjectViewModel projectsProvider;
|
|
|
|
|
bool isMoreOption = false;
|
|
|
|
|
bool onlySMSBox = false;
|
|
|
|
|
@ -409,13 +409,6 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
onTap: () {
|
|
|
|
|
authenticationViewModel.deleteUser();
|
|
|
|
|
authenticationViewModel.setAppStatus(APP_STATUS.UNAUTHENTICATED);
|
|
|
|
|
// Navigator.pushAndRemoveUntil(
|
|
|
|
|
// AppGlobal.CONTEX,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: RootPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// (r) => false);
|
|
|
|
|
// Navigator.of(context).pushNamed(LOGIN);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
@ -548,13 +541,14 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkActivationCode({value}) async {
|
|
|
|
|
checkActivationCode({String value}) async {
|
|
|
|
|
await authenticationViewModel.checkActivationCodeForDoctorApp(activationCode: value);
|
|
|
|
|
if (authenticationViewModel.state == ViewState.ErrorLocal) {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
Helpers.showErrorToast(authenticationViewModel.error);
|
|
|
|
|
} else {
|
|
|
|
|
await authenticationViewModel.onCheckActivationCodeSuccess();
|
|
|
|
|
if(value !=null)
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
navigateToLandingPage();
|
|
|
|
|
@ -569,6 +563,4 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|