formwise 1.1.0 copy "formwise: ^1.1.0" to clipboard
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: EmailTypoDetector now 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() gains customDomains and maxTypoDistance parameters
  • 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)
    • PostalCountry enum, PostalCodeValidator (forCountry(), autoDetect(), detectCountry()), PostalCodeFormatter
    • SmartTextFormField.postalCode() named constructor
  • Animated validation UX: AnimatedValidationIcon, StrengthIndicator, AnimatedValidationBorder, PasswordStrength calculator
    • SmartTextFormField now uses AnimatedValidationIcon internally for smooth state transitions
  • Optional ML module (package:formwise/formwise_ml.dart): on-device TFLite email typo detection via EmailMlValidator, with automatic edit-distance fallback when no model is loaded. Imported separately so tflite_flutter isn'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
  • SmartTextFormField with 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
  • SmartFormController for programmatic form control
  • Animated validation feedback with shake-on-error
  • Debounced async validation support
0
likes
160
points
30
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#form #validation #input #formatting #widget

License

MIT (license)

Dependencies

flutter, tflite_flutter

More

Packages that depend on formwise