Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebloc_presentation

Dispatch single-time side effects from Bloc or Cubit without polluting state.

pub.devRemove
side_effect_bloc

Extended bloc with a separate stream for one-time side effects.

pub.devRemove
ScoresHealth69 (best)45
Maintenance26 (best)0
Quality9196 (best)
Popularity81 (best)22
Community80 (best)41
Compatibility100100
UsageDownloads (30 days)25k (best)1.1k
Likes93 (best)7
Pub points140 / 160150 / 160 (best)
GitHub stars35 (best)10
MaintenanceLatest release1.1.2+3, 8 months ago (best)1.0.0, 5 years ago
Major versions in 12 months00
Contributors12 (best)1
Publisherleancode.cogeorgeci.com
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies2 (best)3
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Keeps UI side effects separate from the core bloc state
  • Includes a listener widget and works well with flutter_hooks
  • Supports nullable types for optional blocs in the widget tree
  • Clean separation of state changes from one-time side effects like navigation and toasts.
  • Provides both a mixin approach for existing blocs and a base class for new ones.
  • Includes convenient listener widgets for Flutter.
Weaknesses
  • Relies on stream subscriptions which require careful lifecycle handling if not using provided widgets
  • Requires using a specific mixin on your Blocs/Cubits
  • Adds an extra conceptual layer on top of standard BLoC.
  • Limited documentation outside of basic usage examples.
WarningsNoneNone
bloc_presentation vs side_effect_bloc: which Flutter package should you use? | pubscout