Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reset the status of the formz instance #24

Closed
herman-the-worm opened this issue Feb 4, 2021 · 3 comments
Closed

How to reset the status of the formz instance #24

herman-the-worm opened this issue Feb 4, 2021 · 3 comments

Comments

@herman-the-worm
Copy link

Hello,

I followed an example in Login bloc instance and applied this to my custom form.

2 questions:

  1. Once I click submit the form and Formz.status jumps to isSubmissionSucessful it never goes back to initial state. How do I force the state to .Pure or .Initial?
  2. Can formz be used with builtin forms in flutter instead of only TextFields?

Thanks

@JoseGeorges8
Copy link

  1. You could emit a state to your bloc after success to make it pure.
  2. You could take a look at FormzMixin

@herman-the-worm
Copy link
Author

Thanks @JoseGeorges8 I will try this

@herman-the-worm
Copy link
Author

This has been resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants