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
source_helper

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

pub.devRemove
ScoresHealth6581 (best)
Maintenance6383 (best)
Quality81100 (best)
Popularity5370 (best)
Community4663 (best)
Compatibility8585
UsageDownloads (30 days)1.4M4.8M (best)
Likes619 (best)
Pub points150 / 160160 / 160 (best)
GitHub stars20 (best)18
MaintenanceLatest release0.3.4, 3 months ago1.4.0, 5 weeks ago (best)
Major versions in 12 months00
Contributors25 (best)
Publisherdash-overflow.netgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies52 (best)
LicenseMITAPACHE-2.0
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
  • Simplifies common tasks in custom source code generation.
  • Well-maintained compatibility with recent analyzer and source_gen packages.
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
  • Niche utility only applicable to developers writing code generators.
  • No official support or guarantee from Google.
WarningsNoneNone
analyzer_buffer vs source_helper: which Flutter package should you use? | pubscout