queen_validators
1.0.1, released 4 years ago by maxzod.com
A collection of validation methods and rules for Flutter forms with zero extra widgets.
What it does
Provides ready-to-use validation rules and functions like IsRequired, IsEmail, and MinLength for Flutter form fields. It works directly with standard form widgets via a qValidator function without introducing extra UI components.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need standard text field validations like email, min length, and required fields in a Flutter form.
- You want validation logic separated from UI widgets with zero extra widget overhead.
Skip it when
- You require a heavy form builder library with automatic state management and complex multi-step forms.
Strengths
- Zero extra widgets, keeping your widget tree clean.
- Out-of-the-box localization support through custom rules or global configuration.
- Comes with a variety of built-in validation rules.
Weaknesses
- Limited documentation outside of basic examples and GitHub repo.
- Some rules have gone through breaking changes or been removed in past beta versions.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
TextFormField(
validator: qValidator([
IsRequired(),
IsEmail(),
MinLength(8),
]),
)Alternatives
Packages that do the same job and could replace queen_validators.
- flutter_pw_validator
Live password validation widget with progress bar, checklist, and Unicode-aware rules.
87Compare - formz
A unified form representation and validation library for Dart.
90Compare - acanthis
A type-safe and composable data validation library for Dart and Flutter.
75Compare - best_form_validator
Zero-initialization form field validators for Flutter with 52 countries and 25 languages.
72Compare
Works with
Packages commonly used together with queen_validators: ones it builds on, ones built on it, and its own family.