Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecached_query

Library for caching, background fetching, and managing server state in Dart and Flutter.

pub.devRemove
shared_value

Manage global state and persist variables using InheritedModel.

pub.devRemove
ScoresHealth90 (best)39
Maintenance89 (best)0
Quality100 (best)93
Popularity81 (best)22
Community80 (best)6
Compatibility100100
UsageDownloads (30 days)21k (best)551
Likes103 (best)17
Pub points160 / 160 (best)145 / 160
GitHub stars88 (best)4
MaintenanceLatest release3.7.1, 3 weeks ago (best)3.0.0, 4 years ago
Major versions in 12 months00
Contributors11 (best)1
Publishercachedquery.devUnverified
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies21 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Automatic stale-while-revalidate caching mechanism
  • Infinite query handling and built-in mutation support with optimistic updates
  • Works alongside other state management options like Bloc or Provider
  • Works anywhere in Dart code even without a BuildContext
  • Only rebuilds widgets that subscribe to updates using .of(context)
  • Built-in support for persisting values using shared_preferences
Weaknesses
  • Requires proper key management and configuration for cache invalidation
  • Persistent storage requires an additional package like cached_storage
  • Relies on global variables which can make testing harder
  • Very limited documentation and changelog history
WarningsNone
  • Unverified publisher
cached_query vs shared_value: which Flutter package should you use? | pubscout