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
bloc_effects

SingleLiveEvent pattern implementation for BLoC and Cubit to dispatch transient UI effects.

pub.devRemove
ScoresHealth91 (best)67
Maintenance73 (best)48
Quality100100
Popularity97 (best)51
Community100 (best)52
Compatibility100100
UsageDownloads (30 days)2.5M (best)5.2k
Likes3.2k (best)20
Pub points160 / 160160 / 160
GitHub stars12k (best)11
MaintenanceLatest release9.2.1, 6 months ago2.1.0, 4 months ago (best)
Major versions in 12 months00
Contributors100+ (best)3
Publisherbloclibrary.devdarttech.dev
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
  • Seamless integration with flutter_bloc.
  • Prevents UI effects from being re-emitted on widget rebuilds or configuration changes.
Weaknesses
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Tied directly to the ecosystem of package:bloc.
  • Transient events are discarded if there are no active listeners.
WarningsNoneNone
bloc vs bloc_effects: which Flutter package should you use? | pubscout