Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebloc_presentation

Dispatch single-time side effects from Bloc or Cubit without polluting state.

pub.devRemove
cached_query

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

pub.devRemove
ScoresHealth6990 (best)
Maintenance2689 (best)
Quality91100 (best)
Popularity8181
Community8080
Compatibility100100
UsageDownloads (30 days)25k (best)21k
Likes93103 (best)
Pub points140 / 160160 / 160 (best)
GitHub stars3588 (best)
MaintenanceLatest release1.1.2+3, 8 months ago3.7.1, 3 weeks ago (best)
Major versions in 12 months00
Contributors12 (best)11
Publisherleancode.cocachedquery.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies22
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Keeps UI side effects separate from the core bloc state
  • Includes a listener widget and works well with flutter_hooks
  • Supports nullable types for optional blocs in the widget tree
  • 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
Weaknesses
  • Relies on stream subscriptions which require careful lifecycle handling if not using provided widgets
  • Requires using a specific mixin on your Blocs/Cubits
  • Requires proper key management and configuration for cache invalidation
  • Persistent storage requires an additional package like cached_storage
WarningsNoneNone
bloc_presentation vs cached_query: which Flutter package should you use? | pubscout