Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebloc

A Dart library for implementing the BLoC pattern with Cubits and Blocs.

pub.devRemove
tanstack_query

Flutter implementation of TanStack Query for caching, synchronizing, and updating server state.

pub.devRemove
ScoresHealth92 (best)71
Maintenance7489 (best)
Quality100 (best)97
Popularity97 (best)20
Community100 (best)41
Compatibility100100
UsageDownloads (30 days)2.5M (best)828
Likes3.2k (best)8
Pub points160 / 160160 / 160
GitHub stars12k (best)5
MaintenanceLatest release9.2.1, 6 months ago2.0.0, 3 weeks ago (best)
Major versions in 12 months0 (best)1
Contributors100+ (best)1
Publisherbloclibrary.devflutter-tanstack.com
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies1 (best)4
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • High testability and clear separation of concerns
  • Large community and extensive documentation
  • Supports both Bloc and Cubit for flexibility
  • Protocol-agnostic fetching supporting REST, GraphQL, and custom promises.
  • Built-in caching, background updates, deduplication, and automatic query invalidation.
  • Familiar API for developers coming from TanStack React Query.
Weaknesses
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Requires flutter_hooks to use the primary hook-based API.
  • Maintained by independent developers as a copycat of the JavaScript library rather than an official port.
WarningsNoneNone
bloc vs tanstack_query: which Flutter package should you use? | pubscout