|
|
|
|
@ -1517,7 +1517,9 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
if (apiResponse.data["MessageStatus"] == 1) {
|
|
|
|
|
LoaderBottomSheet.showLoader(loadingText: "Your medical file has been created successfully. \nPlease proceed to login.");
|
|
|
|
|
//TODO: Here We Need to Show a Dialog Of Something in the case of Success.
|
|
|
|
|
// Reset registration payload and clear healthId so subsequent logins hit the login endpoint
|
|
|
|
|
_appState.getUserRegistrationPayload.healthId = null;
|
|
|
|
|
_appState.setUserRegistrationPayload = RegistrationDataModelPayload();
|
|
|
|
|
await clearDefaultInputValues(); // This will Clear All Default Values Of User.
|
|
|
|
|
Future.delayed(Duration(seconds: 1), () {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
|