formwise 1.1.0
formwise: ^1.1.0 copied to clipboard
Smart form fields for Flutter with auto-validation, auto-formatting, typo detection, and animated error feedback. Supports email, phone, credit card, URL, and custom fields.
1.1.0 #
- Email typo detection rewrite:
EmailTypoDetectornow uses Levenshtein edit distance against 55+ known domains instead of a static 30-entry dictionary. Catches any typo within a configurable edit distance, not just pre-listed ones.SmartValidators.email()gainscustomDomainsandmaxTypoDistanceparameters
- Postal code validation and formatting for 20 countries (US, UK, Canada, Japan, Germany, France, Australia, India, Brazil, Nigeria, Netherlands, Italy, Spain, South Korea, China, Russia, Mexico, Switzerland, Poland, Sweden)
PostalCountryenum,PostalCodeValidator(forCountry(),autoDetect(),detectCountry()),PostalCodeFormatterSmartTextFormField.postalCode()named constructor
- Animated validation UX:
AnimatedValidationIcon,StrengthIndicator,AnimatedValidationBorder,PasswordStrengthcalculatorSmartTextFormFieldnow usesAnimatedValidationIconinternally for smooth state transitions
- Optional ML module (
package:formwise/formwise_ml.dart): on-device TFLite email typo detection viaEmailMlValidator, with automatic edit-distance fallback when no model is loaded. Imported separately sotflite_flutterisn't required for core usage. - Example app with 5 interactive demos: sign-up form, payment form, address form, formatters showcase, async validation
- Test suite grown from 26 to 316 tests across validators, formatters, widgets, and full lifecycle/integration coverage
1.0.0 #
- Initial release
SmartTextFormFieldwith built-in smart validation- Validators: email (with typo detection), phone, URL, credit card (Luhn), numeric range, pattern
- Formatters: phone number, credit card, date, currency, custom mask
SmartFormControllerfor programmatic form control- Animated validation feedback with shake-on-error
- Debounced async validation support