former 0.2.0
former: ^0.2.0 copied to clipboard
Easy form building in Flutter with a fluent schema API.
0.2.0 official release 🎉! #
Improvements:
- Former widgets now provide a more descriptive error message when the type of the form is not passed.
For example:
You must pass in the type of your form that this Former widget is consuming, so that the widget can locate and obtain the correct form. Example: FormerTextField<MyForm>( ^^^^^^^^ Pass in the type of your form here. ...other params, ), This assertion is made by: FormerTextField
0.2.0-rc.1 v2 release candidate 1 #
- Still figuring out pub versioning, to avoid confusion, I decided to do a release candidate release since there will unlikely be any other API breaking changes.
0.2.0-beta.5 v2 pre-release (beta) 5 #
- No changes - bumped to beta for semantics.
0.2.0-dev.4 v2 fourth dev release #
New changes:
FormerForm.submitnow allows return values.- Subsequently,
FormerProvider.submitnow accepts a generic type that should match the return value ofFormerForm.submit. For example, ifFormerForm.submitreturnsFuture<String>,Stringshould be used as a type parameter toFormerProvider.submit.
- Subsequently,
Breaking changes:
FormerProvider.submitnow automatically disables the form during form submission until it gets a response back.FormerProvider.submitnow throws aFormInvalidExceptionif the form is invalid.
0.2.0-dev.3 v2 third dev release #
New features:
FormerProvidernow has a getter that verifies and returns whether the form is valid or not.
0.2.0-dev.2 v2 second dev release #
Breaking changes #
FormerErrornow renders an emptyContainerif the given field does not have any error.
0.2.0-dev.1 v2 dev release #
Breaking changes #
FormerForm.submitnow requires aBuildContextparameter. Forms that extendFormerFormshould have theirsubmitmethods updated accordingly.
0.1.0-dev.1 Initial dev release #
- Initial dev release