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
source_helper

Utilities to help with Dart source code generation and string literal formatting.

pub.devRemove
ScoresHealth87 (best)81
Maintenance8083 (best)
Quality96100 (best)
Popularity83 (best)70
Community80 (best)63
Compatibility100 (best)85
UsageDownloads (30 days)672k4.8M (best)
Likes329 (best)19
Pub points150 / 160160 / 160 (best)
GitHub stars1.6k (best)18
MaintenanceLatest release5.15.0, 4 months ago1.4.0, 5 weeks ago (best)
Major versions in 12 months00
Contributors46 (best)5
Publisherwasabeef.jpgoogle.dev
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAll (pure Dart)
WASM-readyNoNo
KindFlutter widgetsPure Dart
Code generationYesYes
Direct dependencies92 (best)
LicenseMITAPACHE-2.0
Setup effortLowLow
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.
  • Simplifies common tasks in custom source code generation.
  • Well-maintained compatibility with recent analyzer and source_gen packages.
Weaknesses
  • Requires running a code generator whenever assets are added or modified.
  • Adds build-time overhead to your project development workflow.
  • Niche utility only applicable to developers writing code generators.
  • No official support or guarantee from Google.
WarningsNoneNone
flutter_gen_runner vs source_helper: which Flutter package should you use? | pubscout