Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeanalyzer_buffer

Helper for code generators to write code with import prefixes and default values

pub.devRemove
flutter_gen_runner

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

pub.devRemove
ScoresHealth6587 (best)
Maintenance6380 (best)
Quality8196 (best)
Popularity5383 (best)
Community4680 (best)
Compatibility85100 (best)
UsageDownloads (30 days)1.4M (best)672k
Likes6329 (best)
Pub points150 / 160150 / 160
GitHub stars201.6k (best)
MaintenanceLatest release0.3.4, 3 months ago (best)5.15.0, 4 months ago
Major versions in 12 months00
Contributors246 (best)
Publisherdash-overflow.netwasabeef.jp
FitPlatformsAll (pure Dart)Android, iOS, Windows, macOS, Linux
WASM-readyNoNo
KindPure DartFlutter widgets
Code generationYesYes
Direct dependencies5 (best)9
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Supports import prefixes and automatic import insertion
  • Copies default values and constants preserving prefixes
  • Provides writeType and DartType.toCode for type conversion
  • Custom string interpolation for dynamic content
  • 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.
Weaknesses
  • Only useful for code generation, not runtime
  • Depends on analyzer and source_gen, so not suitable for pure Dart projects
  • Requires understanding of analyzer APIs
  • Requires running a code generator whenever assets are added or modified.
  • Adds build-time overhead to your project development workflow.
WarningsNoneNone
analyzer_buffer vs flutter_gen_runner: which Flutter package should you use? | pubscout