Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefraction

Create, parse, and perform arithmetic operations with fractions and mixed fractions.

pub.devRemove
validators2

String validation and sanitization for Dart.

pub.devRemove
ScoresHealth84 (best)83
Maintenance97 (best)88
Quality97 (best)96
Popularity66 (best)50
Community4680 (best)
Compatibility100100
UsageDownloads (30 days)25k78k (best)
Likes65 (best)9
Pub points160 / 160 (best)150 / 160
GitHub stars22 (best)0
MaintenanceLatest release6.0.1, 7 days ago (best)5.1.1, 3 weeks ago
Major versions in 12 months10 (best)
Contributors29 (best)
Publisherfluttercompletereference.comonepub.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Immutable types ensuring safe state management.
  • Supports both regular and mixed fractions along with rational parsing.
  • Built-in arithmetic operations that reduce to lowest terms.
  • No external dependencies, pure Dart.
  • Up-to-date regexes and edge‑case handling (e.g., email backtracking fix).
  • Supports Dart 3.x and null safety.
Weaknesses
  • Arithmetic operations throw a FractionException if results overflow the integer range.
  • Limited to string validation; no UI components.
  • No built‑in error message localization.
  • Not a form builder, just helper functions.
WarningsNoneNone
fraction vs validators2: which Flutter package should you use? | pubscout