well_formed
well-formed widget fields — well-formed is a form field package designed to relieve the developer of much of the form-related coding by providing out-of-the-box field masking, validation, smart trimming, and more.
in addition, this package aims to:
- improve the readability of the source code by providing form fields that have “semantic” names — names that convey their purpose at first glance — such as “emailfield”, “digitfields”, “ipv4field”, and so on.
- select the keyboard type according to the field’s purpose.
- not to end up being yet another buggy flutter form package!.
in order to be a reliable package, every class is well-documented and fully unit tested by a ci/cd pipeline with rigorous quality gates.
getting started
most of the form fields in this package are built on top of a textformfield
widget so they remain fully compatible with the form
widget. this is quite important to avoid buggy behavior such as when a field does not get reset when its parent form gets reset.
demo application
the demo application provides a fully working example, focused on demonstrating exactly three widgets in action — wellformed, basictextfield and digitfield. you can take the code in this demo and experiment with it.
to run the demo application:
dartoos-dev/well_formed.git
cd well_formed/example/
flutter run -d chrome
this should launch the demo application on chrome in debug mode.
Comments are closed.