Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebuild

Package for authoring build_runner compatible code generators.

pub.devRemove
macro_kit

A development-time macro system for instant code generation without build_runner.

pub.devRemove
ScoresHealth87 (best)63
Maintenance90 (best)64
Quality9396 (best)
Popularity85 (best)26
Community80 (best)41
Compatibility8585
UsageDownloads (30 days)8.1M (best)301
Likes102 (best)49
Pub points150 / 160150 / 160
GitHub stars871 (best)48
MaintenanceLatest release5.0.0, 5 weeks ago (best)0.8.2, 3 months ago
Major versions in 12 months10 (best)
Contributors100+ (best)1
Publisherdart.devrebaz.xyz
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies6 (best)18
LicenseBSD-3-CLAUSEMIT
Setup effortMediumMedium
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.
  • Generates code in under 100ms after initial run
  • Eliminates slow build processes and build_runner conflicts
  • Allows real-time debugging of macros inside your app
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.
  • Macros are currently limited to classes, top-level functions, records, and top-level variables
  • Requires manual setup of an analysis_options plugin and a macro_context file
WarningsNoneNone
build vs macro_kit: which Flutter package should you use? | pubscout