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

A code generator for your assets, fonts, and colors to eliminate string-based APIs.

pub.devRemove
ScoresHealth6587 (best)
Maintenance6380 (best)
Quality81100 (best)
Popularity5379 (best)
Community4680 (best)
Compatibility85100 (best)
UsageDownloads (30 days)1.4M (best)139k
Likes61.8k (best)
Pub points150 / 160160 / 160 (best)
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)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies5 (best)6
LicenseMITMIT
Setup effortLowMedium
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 typo-prone string-based asset APIs.
  • Integrates well with popular packages like flutter_svg, lottie, and rive.
  • Supports build_runner and pub workspaces.
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 code generation (build_runner) when assets change.
  • Adds a build step and dependency footprint to the project.
WarningsNoneNone
analyzer_buffer vs flutter_gen: which Flutter package should you use? | pubscout