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
redux_compact

Redux extension to reduce boilerplate with compact actions and inline reducers.

pub.devRemove
ScoresHealth91 (best)45
Maintenance73 (best)0
Quality100 (best)96
Popularity97 (best)21
Community100 (best)41
Compatibility100100
UsageDownloads (30 days)2.5M (best)837
Likes3.2k (best)8
Pub points160 / 160 (best)150 / 160
GitHub stars12k (best)9
MaintenanceLatest release9.2.1, 6 months ago (best)0.3.1, 5 years ago
Major versions in 12 months00
Contributors100+ (best)1
Publisherbloclibrary.devkonstant.is
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
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
  • Eliminates separate action and reducer boilerplate files.
  • Built-in support for asynchronous requests and request statuses.
  • Action chaining capabilities with before and after hooks.
Weaknesses
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Tightly coupled to the Redux architecture.
  • Mixing business logic and state reduction inside action classes can lead to large files if not structured carefully.
WarningsNoneNone
bloc vs redux_compact: which Flutter package should you use? | pubscout