formz
formz copied to clipboard
A unified form representation in Dart used at Very Good Ventures 🦄
## Use case Currently `FormzInput.isValid` / `FormzInput.isNotValid` / `FormzInput.error` / `FormzInput.displayError` / `FormzInput.validator` / `Formz .validate` methods / getters always recalculate the `error` which is waste of cpu cycle. `FormzInput`...
Hello, I'm trying to use Formz to validate a phonenumber using the https://pub.dev/packages/libphonenumber library. But libphonenumber's validation function returns a Future, so I was unable to use it in the...
I have introduced Bloc and Formz for a Flutter application which I am currently doing. What I was trying to achieve currently was a simple text field in a form...
For now, FormzInput provides error from the validator method but sometimes need to provide error from the database as firebase for example. Of course, it is possible to create separate...
We would like to have map, whenMap etc in FormzStatus so that it will be easy to check the formzStatus instead of `if elseif`.
It seems like this could be a bug or is it intended? but I don't see how can you add submission related status to a class with the FormMixin
## Description I've added code to support async form validations. ## Type of Change - [x] ✨ New feature (non-breaking change which adds functionality) - [ ] 🛠️ Bug fix...
## Use case In many cases this is the flow in `cubit` / `bloc` when operating with form inputs: ```dart Future submit() async { if (state.status.isInProgress || state.status.isSuccess || !state.isValid)...
In a form some fields may be required are some are not. What is best way to use Formz in this situation. Do we need to create a separate input...
**Is your feature request related to a problem? Please describe.** I have a use case of a more complex form, but am not sure how to handle it: For example,...