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
visibility_aware_state

A State for StatefulWidgets that provides visibility awareness similar to Android activity lifecycles.

pub.devRemove
ScoresHealth90 (best)48
Maintenance88 (best)0
Quality100 (best)96
Popularity81 (best)39
Community80 (best)41
Compatibility100100
UsageDownloads (30 days)21k (best)945
Likes103 (best)34
Pub points160 / 160 (best)150 / 160
GitHub stars88 (best)15
MaintenanceLatest release3.7.1, 3 weeks ago (best)1.0.5, 4 years ago
Major versions in 12 months00
Contributors11 (best)1
Publishercachedquery.devehwplus.com
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies20 (best)
LicenseMITAPACHE-2.0
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
  • Simple API similar to Android activity lifecycle methods.
  • Tracks whether the app is in the background or foreground automatically.
  • Provides helper methods like finish() and isVisible().
Weaknesses
  • Requires proper key management and configuration for cache invalidation
  • Persistent storage requires an additional package like cached_storage
  • Limited to managing widget visibility state rather than general app state management.
  • Relies on extending a specific custom State class rather than composition or hooks.
WarningsNoneNone
cached_query vs visibility_aware_state: which Flutter package should you use? | pubscout