Skip to content
pubscout

flutter_laravel_form_validation

1.0.4, released 3 years ago by abiodundotdev.prodigysoftware.org

Flutter package providing Laravel-inspired form validation rules as declarative validators

WASM-ready
$ flutter pub add flutter_laravel_form_validation
Source repository

What it does

It exposes a set of validation rules that can be applied to TextFormField validators via a simple syntax. Rules can be supplied as strings or FLValidator objects and support custom messages and attribute labels.

AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need quick, readable validation logic without writing custom validator functions
  • You prefer Laravel-like rule syntax in Flutter forms
  • You want to reuse validation rules across multiple fields

Skip it when

  • You require complex asynchronous validation that depends on external services
  • You need highly customized error handling beyond simple messages

Strengths

  • Simple, readable rule syntax
  • Supports custom messages and attribute labels
  • No code generation or build steps required

Weaknesses

  • Limited to synchronous validation only
  • No support for async or remote validation
  • Documentation is minimal

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency to pubspec and import package

TextFormField(
  validator: ['required','max:10','uppercase'].v,
)

Alternatives

Packages that do the same job and could replace flutter_laravel_form_validation.