Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeindent

Provides methods to change indentation of multiline Dart strings while preserving relative indentation.

pub.devRemove
string_to_color

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

pub.devRemove
ScoresHealth46 (best)42
Maintenance00
Quality91 (best)70
Popularity31 (best)30
Community4646
Compatibility100100
UsageDownloads (30 days)2.5k (best)2.2k
Likes1617 (best)
Pub points140 / 160 (best)125 / 160
GitHub stars17 (best)16
MaintenanceLatest release2.0.0, 6 years ago2.0.0, 4 years ago (best)
Major versions in 12 months00
Contributors22
Publisheriiro.devhirantha.xyz
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies00
LicenseBSD-2-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Zero dependencies and pure Dart implementation
  • Simple API via String extensions
  • Handles relative indentation correctly
  • Extremely simple API for converting strings to colors
  • Supports multiple return types (Color object, hex string, hex int)
Weaknesses
  • Limited to whitespace indentation; no support for tabs vs spaces mixing
  • No streaming or lazy processing for very large strings
  • Very limited scope with only basic string-to-color functions
  • Lacks advanced customization for color generation algorithms
WarningsNoneNone
indent vs string_to_color: which Flutter package should you use? | pubscout