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
refena

A state management and dependency injection library inspired by Riverpod and async_redux.

pub.devRemove
ScoresHealth92 (best)87
Maintenance7496 (best)
Quality100100
Popularity97 (best)70
Community100 (best)64
Compatibility100100
UsageDownloads (30 days)2.5M (best)10k
Likes3.2k (best)60
Pub points160 / 160160 / 160
GitHub stars12k—
MaintenanceLatest release9.2.1, 6 months ago3.7.0, 3 weeks ago (best)
Major versions in 12 months00
Contributors100+—
Publisherbloclibrary.devrefena.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies11
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • High testability and clear separation of concerns
  • Large community and extensive documentation
  • Supports both Bloc and Cubit for flexibility
  • Supports multiple paradigms including Notifier, AsyncNotifier, and ReduxNotifiers
  • Native Flutter integration using BuildContext extensions without custom widget wrappers
  • Extensive tracing, debugging, and testing capabilities
Weaknesses
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Providers are not disposed automatically and require explicit management or view models
  • Smaller ecosystem and community compared to Riverpod or Bloc
WarningsNoneNone
bloc vs refena: which Flutter package should you use? | pubscout