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
string_to_color

Convert strings to colors, hex strings, or hex integers in Dart and Flutter.

pub.devRemove
ScoresHealth83 (best)42
Maintenance96 (best)0
Quality97 (best)70
Popularity66 (best)30
Community4646
Compatibility100100
UsageDownloads (30 days)25k (best)2.2k
Likes65 (best)17
Pub points160 / 160 (best)125 / 160
GitHub stars22 (best)16
MaintenanceLatest release6.0.1, 7 days ago (best)2.0.0, 4 years ago
Major versions in 12 months10 (best)
Contributors22
Publisherfluttercompletereference.comhirantha.xyz
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
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.
  • Extremely simple API for converting strings to colors
  • Supports multiple return types (Color object, hex string, hex int)
Weaknesses
  • Arithmetic operations throw a FractionException if results overflow the integer range.
  • Very limited scope with only basic string-to-color functions
  • Lacks advanced customization for color generation algorithms
WarningsNoneNone
fraction vs string_to_color: which Flutter package should you use? | pubscout