Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeformz

A unified form representation and validation library for Dart.

pub.devRemove
string_validator

String validation and sanitization library for Dart.

pub.devRemove
ScoresHealth90 (best)64
Maintenance80 (best)8
Quality100100
Popularity95 (best)86
Community80 (best)63
Compatibility100100
UsageDownloads (30 days)261k (best)231k
Likes919 (best)469
Pub points160 / 160160 / 160
GitHub stars492 (best)117
MaintenanceLatest release0.8.1, 3 months ago (best)1.2.0, a year ago
Major versions in 12 months00
Contributors17 (best)5
Publisherverygood.venturessuragch.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies10 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Type-safe representation of form fields and errors.
  • Supports pure and dirty states for validation feedback control.
  • Supports caching validation results for expensive checks.
  • Extensive collection of validators and sanitizers ported from validator.js.
  • Convenient extension methods for direct usage on String instances.
  • No external dependencies and supports all platforms.
Weaknesses
  • Requires writing boilerplate classes for each form input type.
  • Does not provide out-of-the-box UI widgets for rendering forms.
  • Does not integrate directly into Flutter's Form/FormField validation state out of the box without manual callbacks.
  • Limited to string operations only.
WarningsNoneNone
formz vs string_validator: which Flutter package should you use? | pubscout