|
|
|
|
@ -584,8 +584,7 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
if (!_appState.getIsChildLoggedIn) {
|
|
|
|
|
await medicalVm.getFamilyFiles(status: 0);
|
|
|
|
|
// await medicalVm.getAllPendingRecordsByResponseId();
|
|
|
|
|
// _navigationService.replaceAllRoutesAndNavigateToLanding();
|
|
|
|
|
_navigationService.popUntilNamed(AppRoutes.landingScreen);
|
|
|
|
|
_navigationService.replaceAllRoutesAndNavigateToLanding();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (activation.list != null && activation.list!.isNotEmpty) {
|
|
|
|
|
@ -745,7 +744,10 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
|
|
|
|
|
Future<void> onWrongActivationCode({String? message}) async {
|
|
|
|
|
otpScreenNotifier.value = true;
|
|
|
|
|
await _dialogService.showErrorBottomSheet(message: message ?? "Something went wrong. ", onOkPressed: () {});
|
|
|
|
|
await _dialogService.showErrorBottomSheet(message: message ?? "Something went wrong. ", onOkPressed: () {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
_navigationService.pushAndReplace(AppRoutes.loginScreen);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
loginWithFingerPrintFace(Function success) async {
|
|
|
|
|
|