Open roshtha opened 1 year ago
Hello,
Thanks for the wonderful course on flutter with MVVM. The course helped us quickly understand flutter programming with MVVM architecture before starting the project development. We are using FlowState and StateRenderer dart files in the repository. I have an issue handling the button click in StateRendererType.POPUP_SUCCESS
In our project, we have a form and save data to local DB; on success, we used the below statement to show an alert message for successful data save.
inputState.add(SuccessState(response));
After the user clicks on the button in the popup, we want to reset the data fields and show the form for another data entry.
But I do not know how to handle the click on the button of the success state popup from my ViewModel class.
Currently, in the form for new data entry, the StateRendererType is still assigned to POPUP_SUCCESS and gets the success popup with each UI interaction.
Please advice.
On the success pop-up that okay button for recall the api or pop the corrent context if you want to clear all field on your from when you click on the success pop-up then use listen((){}); method on your dataController wich created in ViewModel and cleare text in this method after success.
Hello,
Thanks for the wonderful course on flutter with MVVM. The course helped us quickly understand flutter programming with MVVM architecture before starting the project development. We are using FlowState and StateRenderer dart files in the repository. I have an issue handling the button click in StateRendererType.POPUP_SUCCESS
In our project, we have a form and save data to local DB; on success, we used the below statement to show an alert message for successful data save.
inputState.add(SuccessState(response));
After the user clicks on the button in the popup, we want to reset the data fields and show the form for another data entry.
But I do not know how to handle the click on the button of the success state popup from my ViewModel class.
Currently, in the form for new data entry, the StateRendererType is still assigned to POPUP_SUCCESS and gets the success popup with each UI interaction.
Please advice.