Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_gen_runner

Generates strongly-typed Dart classes for Flutter assets, fonts, and colors to avoid string-based APIs.

pub.devRemove
json2model

Generates Dart model classes from JSON strings via command line

pub.devRemove
ScoresHealth87 (best)69
Maintenance8094 (best)
Quality96100 (best)
Popularity83 (best)11
Community80 (best)41
Compatibility100 (best)85
UsageDownloads (30 days)672k (best)950
Likes329 (best)6
Pub points150 / 160160 / 160 (best)
GitHub stars1.6k (best)5
MaintenanceLatest release5.15.0, 4 months ago1.1.4, 12 days ago (best)
Major versions in 12 months00
Contributors46 (best)1
Publisherwasabeef.jpvenshine.cn
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAll (pure Dart)
WASM-readyNoNo
KindFlutter widgetsPure Dart
Code generationYesNo
Direct dependencies91 (best)
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Eliminates string-based asset paths and potential typos.
  • Integrates seamlessly with build_runner and pubspec.yaml configurations.
  • Supports specialized integrations like flutter_svg, rive, and lottie.
  • Supports null safety and optional fields
  • Generates toJson/fromJson automatically
  • Handles non‑identifier keys and integer values for double fields
  • Command‑line tool is easy to use
Weaknesses
  • Requires running a code generator whenever assets are added or modified.
  • Adds build-time overhead to your project development workflow.
  • Only a command‑line tool, not integrated with build_runner
  • No support for runtime JSON parsing
  • Requires manual regeneration when JSON changes
WarningsNoneNone
flutter_gen_runner vs json2model: which Flutter package should you use? | pubscout