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
http

A composable, Future‑based library for making HTTP requests across platforms.

pub.devRemove
ScoresHealth7486 (best)
Maintenance83 (best)62
Quality97100 (best)
Popularity28100 (best)
Community6380 (best)
Compatibility100100
UsageDownloads (30 days)1.3k15M (best)
Likes138.5k (best)
Pub points160 / 160160 / 160
GitHub stars101.1k (best)
MaintenanceLatest release2.0.0, 5 weeks ago (best)1.6.0, a year ago
Major versions in 12 months10 (best)
Contributors5100+ (best)
Publisheriamdipanshus.indart.dev
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAll (pure Dart)
WASM-readyNoYes
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
  • Multi‑platform (mobile, web, desktop)
  • Simple, Future‑based API
  • Easy to mock for testing
  • Retry and abort capabilities
Weaknesses
  • Tight coupling to the Dio HTTP client package
  • Uses a singleton TokenManager pattern which may limit multiple distinct auth sessions
  • No built‑in JSON serialization or auth helpers
  • Limited to low‑level HTTP, no higher‑level abstractions
  • No code generation
WarningsNone
  • Quiet but busy
dio_refresh vs http: which Flutter package should you use? | pubscout