Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedoc_widget

Generates documentation for Flutter widgets via annotations and a preview app.

pub.devRemove
gql_code_builder

Dart code builder generating typed classes from GraphQL documents and SDL

pub.devRemove
ScoresHealth4778 (best)
Maintenance087 (best)
Quality9191
Popularity2946 (best)
Community5280 (best)
Compatibility100 (best)85
UsageDownloads (30 days)351310k (best)
Likes84 (best)5
Pub points140 / 160140 / 160
GitHub stars57271 (best)
MaintenanceLatest release0.4.0, 4 years ago0.15.3, 4 weeks ago (best)
Major versions in 12 months00
Contributors339 (best)
Publisherisacjunior.devgql-dart.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesNo
KindFlutter widgetsPure Dart
Code generationYesNo
Direct dependencies2 (best)10
LicenseMITMIT
Setup effortMediumMedium
JudgementStrengths
  • Zero‑manual doc writing – generated from code.
  • Integrated preview UI for desktop, web, and mobile.
  • Supports null‑safety and default values.
  • 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 build_runner and a separate builder package.
  • Only works for Flutter widgets, not pure Dart code.
  • Adds extra generated files to the repo.
  • 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
doc_widget vs gql_code_builder: which Flutter package should you use? | pubscout