Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_gen_runner

Generates strongly-typed Dart classes for Flutter assets, fonts, and colors to avoid string-based APIs.

pub.devRemove
sum_types

A code generator that adds algebraic sum‑type support to Dart.

pub.devRemove
ScoresHealth87 (best)44
Maintenance80 (best)3
Quality96 (best)76
Popularity83 (best)47
Community80 (best)23
Compatibility100100
UsageDownloads (30 days)672k (best)76k
Likes329 (best)14
Pub points150 / 160 (best)140 / 160
GitHub stars1.6k (best)40
MaintenanceLatest release5.15.0, 4 months ago (best)0.4.0, 2 years ago
Major versions in 12 months00
Contributors46 (best)4
Publisherwasabeef.jpUnverified
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAll (pure Dart)
WASM-readyNoYes
KindFlutter widgetsPure Dart
Code generationYesNo
Direct dependencies91 (best)
LicenseMITMIT
Setup effortLowMedium
JudgementStrengths
  • Eliminates string-based asset paths and potential typos.
  • Integrates seamlessly with build_runner and pubspec.yaml configurations.
  • Supports specialized integrations like flutter_svg, rive, and lottie.
  • Generates boiler‑plate‑free sum‑type classes.
  • Supports const constructors, generic and recursive types.
  • Provides exhaustive `iswitch` pattern matching.
Weaknesses
  • Requires running a code generator whenever assets are added or modified.
  • Adds build-time overhead to your project development workflow.
  • Requires build_runner and the generator to run.
  • Only works with Dart SDK >=3.0.0.
  • Limited to sum‑type use‑cases; not a general utility library.
WarningsNoneNone
flutter_gen_runner vs sum_types: which Flutter package should you use? | pubscout