Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebuild

Package for authoring build_runner compatible code generators.

pub.devRemove
json_annotation

Provides annotations for json_serializable to generate JSON (de)serialization code.

pub.devRemove
ScoresHealth87 (best)84
Maintenance90 (best)70
Quality93 (best)81
Popularity8597 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)8.1M16M (best)
Likes1021.3k (best)
Pub points150 / 160150 / 160
GitHub stars8711.6k (best)
MaintenanceLatest release5.0.0, 5 weeks ago (best)4.12.0, 6 months ago
Major versions in 12 months10 (best)
Contributors100+ (best)51
Publisherdart.devgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies61 (best)
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortMediumLow
JudgementStrengths
  • Provides the core underlying Builder interface used across the Dart build ecosystem.
  • Gives easy access to the analyzer for processing and resolving Dart source code.
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
Weaknesses
  • Low-level compared to source_gen, requiring more manual handling of build steps.
  • Major version updates can introduce breaking changes for packages implementing BuildStep.
  • Requires a separate code‑gen step with build_runner and json_serializable.
  • Only useful when paired with a generator; on its own it does nothing.
WarningsNoneNone
build vs json_annotation: which Flutter package should you use? | pubscout