Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecharlatan

Configure and provide fake HTTP responses to the dio HTTP client for testing.

pub.devRemove
http_mock_adapter

A simple to use mocking package for Dio intended to be used in tests.

pub.devRemove
ScoresHealth63 (best)50
Maintenance32 (best)17
Quality100 (best)91
Popularity3486 (best)
Community7480 (best)
Compatibility100 (best)85
UsageDownloads (30 days)2k411k (best)
Likes20185 (best)
Pub points160 / 160 (best)140 / 160
GitHub stars1669 (best)
MaintenanceLatest release0.5.0, 2 years ago (best)0.6.1, 3 years ago
Major versions in 12 months00
Contributors719 (best)
Publisherbetterment.devlomsa.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies44
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Makes testing Dio HTTP calls straightforward and readable.
  • Supports URI templates and custom request matching logic.
  • Simple to use for mocking Dio requests in tests
  • Supports declarative request-response mocking
  • Includes features like response delays and exact body checks
Weaknesses
  • Limited specifically to the Dio HTTP client.
  • Not documented to support complex mock server scenarios beyond adapter-level faking.
  • Strictly tied to the Dio package
  • Limited to testing use cases
WarningsNoneNone
charlatan vs http_mock_adapter: which Flutter package should you use? | pubscout