Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeenum_to_string

Convert enum values to readable strings and back, with camelCase and custom mappings.

pub.devRemove
string_to_color

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

pub.devRemove
ScoresHealth59 (best)42
Maintenance5 (best)0
Quality96 (best)70
Popularity84 (best)30
Community4546 (best)
Compatibility100100
UsageDownloads (30 days)187k (best)2.2k
Likes331 (best)17
Pub points150 / 160 (best)125 / 160
GitHub stars85 (best)16
MaintenanceLatest release2.2.1, 2 years ago (best)2.0.0, 4 years ago
Major versions in 12 months00
Contributors12 (best)2
PublisherUnverifiedhirantha.xyz
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simple API, no dependencies
  • Supports custom mappings and camelCase conversion
  • Works with Dart 2.17+ enhanced enums
  • Fast and lightweight
  • Extremely simple API for converting strings to colors
  • Supports multiple return types (Color object, hex string, hex int)
Weaknesses
  • No built‑in localization support
  • Limited to enums only
  • No code generation or compile‑time checks
  • Very limited scope with only basic string-to-color functions
  • Lacks advanced customization for color generation algorithms
WarningsNoneNone
enum_to_string vs string_to_color: which Flutter package should you use? | pubscout