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
gql_code_builder

Dart code builder generating typed classes from GraphQL documents and SDL

pub.devRemove
ScoresHealth7778 (best)
Maintenance8787
Quality8191 (best)
Popularity61 (best)46
Community6380 (best)
Compatibility8585
UsageDownloads (30 days)130k310k (best)
Likes34 (best)5
Pub points150 / 160 (best)140 / 160
GitHub stars44271 (best)
MaintenanceLatest release2.2.1, 5 weeks ago0.15.3, 4 weeks ago (best)
Major versions in 12 months00
Contributors539 (best)
Publisherkevmoo.comgql-dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies4 (best)10
LicenseBSD-3-CLAUSEMIT
Setup effortLowMedium
JudgementStrengths
  • Zero runtime overhead
  • Supports both CLI and build_runner workflows
  • Customizable output path
  • CI friendly `--check` flag
  • Integrates directly with code_builder and analyzer for fine-grained code generation
  • Supports advanced GraphQL features like fragment spreads, inline fragments, and tristate values (null vs absent)
Weaknesses
  • Requires Dart 3.12+
  • Adds a build step to the project
  • Only handles the version field, not other metadata
  • The API is explicitly unstable and intended primarily for internal use by package:gql_build
  • Documentation and examples are minimal in the package README
WarningsNoneNone
build_version vs gql_code_builder: which Flutter package should you use? | pubscout