universal_form_validation 1.0.0 copy "universal_form_validation: ^1.0.0" to clipboard
universal_form_validation: ^1.0.0 copied to clipboard

Lightweight, pure Dart, country-aware form validation. Email, password, phone, URL, credit card, address and postal code validators for Flutter and Dart apps.

1.0.0 #

First stable release. 🎉

New validators

  • BasicValidators.url — HTTP/HTTPS URL validation with optional scheme
  • BasicValidators.pattern — validate against any custom RegExp
  • TextValidators.username and TextValidators.alphanumeric
  • NumberValidators.integer, NumberValidators.range (min/max)
  • NumberValidators.creditCard — Luhn checksum card validation
  • DateValidatorsdate, minimumAge (e.g. 18+), notInFuture
  • FormValidators.compose — chain multiple validators per field
  • FormValidators.optional — skip validation for empty optional fields

New countries

  • 🇬🇧 UKRules, 🇦🇺 AustraliaRules, 🇮🇳 IndiaRules, 🇩🇪 GermanyRules, 🇵🇰 PakistanRules
  • CountryRules.of('US') — look up rules by ISO country code with a safe generic fallback

Improvements

  • Package is now pure Dart with zero dependencies — usable in Flutter (all platforms), server, CLI, and web projects
  • NumberValidators.phone now accepts formatted numbers such as (555) 123-4567 and +1 555 123 4567; length is checked on digits only
  • Password special-character check now accepts any non-alphanumeric character
  • Broader SDK compatibility (sdk: ^3.4.0)
  • Complete runnable Flutter example app
  • Expanded test suite and documentation

0.0.4 #

  • Updated repository and homepage URLs

0.0.3 #

  • Complete documentation for public members
  • MIT Licence
1
likes
160
points
24
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Lightweight, pure Dart, country-aware form validation. Email, password, phone, URL, credit card, address and postal code validators for Flutter and Dart apps.

Repository (GitHub)
View/report issues

Topics

#form #validation #validator #form-validation #input

License

MIT (license)

More

Packages that depend on universal_form_validation