Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedio_refresh

Dio interceptor for automatic token refresh and retry on API failures

pub.devRemove
http2

An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.

pub.devRemove
ScoresHealth7491 (best)
Maintenance8399 (best)
Quality97 (best)93
Popularity2888 (best)
Community6380 (best)
Compatibility100 (best)85
UsageDownloads (30 days)1.3k965k (best)
Likes1397 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars101.1k (best)
MaintenanceLatest release2.0.0, 5 weeks ago3.2.0, 4 days ago (best)
Major versions in 12 months11
Contributors5100+ (best)
Publisheriamdipanshus.indart.dev
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAll (pure Dart)
WASM-readyNoNo
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies3 (best)4
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Automatic token refresh and request retrying on API failures
  • Handles concurrent failures with a shared refresh lock to avoid duplicate refresh calls
  • Supports custom token validation and header generation
  • Supports multiplexing multiple requests over a single connection
  • Includes `Http2Client` for pooled `package:http` compatibility
  • Provides fine-grained control over frames, streams, and transport connections
Weaknesses
  • Tight coupling to the Dio HTTP client package
  • Uses a singleton TokenManager pattern which may limit multiple distinct auth sessions
  • Does not fall back to HTTP/1.1 if a server fails to negotiate HTTP/2
  • Requires handling low-level byte streams and header framing for custom requests
WarningsNoneNone
dio_refresh vs http2: which Flutter package should you use? | pubscout