Search packages, repositories and app categories

Package detailsv1.0.1

queen_validators

collection of validation methods and rules for flutter form with ZERO extra widgets

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.1K
Likes
80
Pub points
135

Install package

flutter pub add queen_validators

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Queen Validators is a lightweight Flutter package offering a comprehensive collection of validation methods and rules for form inputs, designed without adding extra widgets. It provides clean, reusable validation logic for common use cases like email, password, phone number, and custom patterns. Built for simplicity and performance, it integrates seamlessly into any Flutter form workflow, enabling developers to validate user input efficiently across Android, iOS, Web, macOS, Windows, and Linux platforms. Ideal for developers seeking minimal overhead and maximum flexibility in form validation.

Use cases

  • Form input validation
  • Email and phone number checks
  • Password strength validation
  • Custom pattern matching
  • Real-time form feedback
  • Cross-platform validation

Key features

  • No extra widgets
  • Extensive built-in validators
  • Supports custom validation rules
  • Lightweight and fast
  • Cross-platform compatibility
  • Easy integration with Form widgets

Suitable for

  • Flutter developers building forms
  • Apps requiring strict input validation
  • Teams prioritizing minimal dependencies
  • Projects targeting multiple platforms
  • Developers wanting simple validation logic

Considerations

  • Does not include UI components
  • Requires manual integration with form fields
  • Limited to validation logic only
  • No built-in error messages
  • Not suitable for complex form state management

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Q U E E N 👑

For More Features OUT-OF-THE-BOX (localization) see Official Documentation site

Validators 🌍

Pub License: MIT issues Pull requests forks Starts style: lint codecov

Buy Me A Coffee

Usage

if you need

  • simple true of false function to validate a input
  • validate a normal flutter Form field
@override
Widget build(BuildContext context) {
return TextFormField(
     // use qValidator function and provider list of rules to apply on this field
    validator: qValidator([
      IsRequired(),
      IsOptional()
      IsEmail(),
      MinLength(8),
      MaxLength(30, "optionally you can override the failure if the validation fails"),
    ]),
  );
  }

customization

if you need to show a custom error message you can

  • use the rule constructor (scooped for a single rule)
  • use ValidatorsLocalization.on (scooped for the entire Type rules)
void main() {
    ValidatorsLocalization.on<IsRequired>((rule) => 'the new required message');
}
  • if you use queen all the rules are localized out of the box 🎁 !

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.