Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeretrofit_generator

Generates Dio client code from Retrofit‑style annotations.

pub.devRemove
tonik

Pure Dart OpenAPI 3.0/3.1 code generator for type-safe API client packages.

pub.devRemove
ScoresHealth89 (best)73
Maintenance94 (best)88
Quality100100
Popularity80 (best)27
Community80 (best)58
Compatibility8585
UsageDownloads (30 days)610k (best)4.5k
Likes201 (best)9
Pub points160 / 160160 / 160
GitHub stars1.2k (best)13
MaintenanceLatest release10.3.3, 3 weeks ago (best)0.11.1, 4 weeks ago
Major versions in 12 months00
Contributors100+ (best)4
Publisherhitrevor.comottenweller.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies99
LicenseMITMIT
Setup effortMediumLow
JudgementStrengths
  • Reduces boilerplate for Dio calls
  • Integrates with build_runner and supports custom options
  • Keeps API definitions clean and type‑safe
  • Generates distinct types for every status code and content type combination.
  • Pure Dart implementation with no JVM or Docker requirement.
  • Supports all OpenAPI parameter encoding styles and advanced composition features like oneOf and allOf.
Weaknesses
  • Requires code generation step (build_runner)
  • Limited to features exposed by the package’s annotations
  • Requires code regeneration whenever the OpenAPI specification changes.
WarningsNoneNone
retrofit_generator vs tonik: which Flutter package should you use? | pubscout