Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_bloc

Flutter widgets to easily integrate blocs and cubits for state management.

pub.devRemove
leancode_hooks

A collection of utility hooks for Flutter, including BLoC integration and controllers.

pub.devRemove
ScoresHealth86 (best)68
Maintenance5561 (best)
Quality100 (best)76
Popularity97 (best)37
Community100 (best)80
Compatibility100100
UsageDownloads (30 days)2.4M (best)2.3k
Likes8.1k (best)14
Pub points160 / 160 (best)140 / 160
GitHub stars12k (best)91
MaintenanceLatest release9.1.1, 2 years ago0.1.2+1, 9 months ago (best)
Major versions in 12 months00
Contributors100+ (best)35
Publisherbloclibrary.devleancode.co
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies22
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Tight integration with the bloc state management library
  • Built-in dependency injection via BlocProvider
  • Reduces boilerplate compared to using raw StreamBuilders
  • Bundles useful BLoC hooks like useBloc, useBlocListener, and useBlocState.
  • Exports package:flutter_hooks so you don't need to add it separately.
  • Production-ready and maintained by LeanCode.
Weaknesses
  • Can introduce significant boilerplate for simple states
  • Steeper learning curve for developers new to the BLoC pattern
  • Adds a dependency on flutter_hooks and bloc.
  • Limited to the specific set of hooks provided by the package.
Warnings
  • Quiet but busy
None
flutter_bloc vs leancode_hooks: which Flutter package should you use? | pubscout