Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebuild_version

Generate a Dart file with the package version at build time.

pub.devRemove
source_gen

Source code generation builders and utilities for the Dart build system.

pub.devRemove
ScoresHealth7784 (best)
Maintenance87 (best)86
Quality8181
Popularity6187 (best)
Community6380 (best)
Compatibility8585
UsageDownloads (30 days)130k7.6M (best)
Likes34191 (best)
Pub points150 / 160150 / 160
GitHub stars44493 (best)
MaintenanceLatest release2.2.1, 5 weeks ago (best)4.3.1, 5 weeks ago
Major versions in 12 months00
Contributors548 (best)
Publisherkevmoo.comtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies4 (best)9
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Zero runtime overhead
  • Supports both CLI and build_runner workflows
  • Customizable output path
  • CI friendly `--check` flag
  • Exposes a developer-friendly API on top of lower-level analyzer and build packages
  • Supports multiple code generators integrating seamlessly in the same project via shared part builders
Weaknesses
  • Requires Dart 3.12+
  • Adds a build step to the project
  • Only handles the version field, not other metadata
  • Requires understanding of the Dart build system and analyzer APIs
WarningsNoneNone
build_version vs source_gen: which Flutter package should you use? | pubscout