Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_annotation

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

pub.devRemove
widgetbook_generator

Generates and sets up Widgetbook code via build_runner

pub.devRemove
ScoresHealth84 (best)81
Maintenance7076 (best)
Quality8196 (best)
Popularity97 (best)62
Community8080
Compatibility100100
UsageDownloads (30 days)16M (best)303k
Likes1.3k (best)21
Pub points150 / 160150 / 160
GitHub stars1.6k (best)967
MaintenanceLatest release4.12.0, 6 months ago3.24.0, 5 months ago (best)
Major versions in 12 months00
Contributors5166 (best)
Publishergoogle.devwidgetbook.io
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies1 (best)10
LicenseBSD-3-CLAUSEMIT
Setup effortLowMedium
JudgementStrengths
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
  • Automates boilerplate for Widgetbook
  • Supports latest analyzer versions
  • Integrates with build_runner ecosystem
Weaknesses
  • 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.
  • Only works with Widgetbook
  • Requires build_runner setup
  • Limited to Dart SDK 3.10+
WarningsNoneNone
json_annotation vs widgetbook_generator: which Flutter package should you use? | pubscout