form_shield 0.1.0 copy "form_shield: ^0.1.0" to clipboard
form_shield: ^0.1.0 copied to clipboard

A declarative, rule-based form validation library for Flutter apps.

Changelog #

All notable changes to the Form Shield package will be documented in this file.

The format is based on Keep a changelog, and this project adheres to Semantic versioning.

0.1.0 - 2025-04-03 #

Added #

  • Initial release of Form Shield
  • Core validation framework with ValidationRule abstract class and ValidationResult class
  • Validator class with support for chaining multiple validation rules
  • Type-specific validator factory methods: forString(), forNumber(), forBoolean(), and forDate()
  • Built-in validation rules:
    • RequiredRule - Validates that a value is not null or empty
    • EmailRule - Validates email addresses with customizable regex pattern
    • PasswordRule - Validates passwords with configurable complexity requirements
    • PasswordMatchRule - Validates that passwords match
    • LengthRule - Validates string length with min and max constraints
    • MinLengthRule - Validates minimum string length
    • MaxLengthRule - Validates maximum string length
    • ValueRule - Validates numeric values with min and max constraints
    • MinValueRule - Validates minimum numeric value
    • MaxValueRule - Validates maximum numeric value
    • PhoneRule - Validates phone numbers
    • CountryPhoneRule - Validates phone numbers for specific countries
    • CustomRule - Allows custom validation logic with fixed error message
    • DynamicCustomRule - Allows custom validation logic with dynamic error messages
  • Seamless integration with Flutter's form validation system
  • Example login form implementation
20
likes
0
points
222
downloads

Publisher

verified publisherstevenosse.com

Weekly Downloads

A declarative, rule-based form validation library for Flutter apps.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on form_shield