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
view_model

A view model library with automatic lifecycle management and dependency resolution.

pub.devRemove
ScoresHealth92 (best)68
Maintenance7485 (best)
Quality100 (best)97
Popularity97 (best)12
Community100 (best)41
Compatibility100100
UsageDownloads (30 days)2.5M (best)318
Likes3.2k (best)12
Pub points160 / 160160 / 160
GitHub stars12k (best)22
MaintenanceLatest release9.2.1, 6 months ago1.3.1, 5 weeks ago (best)
Major versions in 12 months0 (best)1
Contributors100+ (best)1
Publisherbloclibrary.devpub.lwjlol.com
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies1 (best)3
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • High testability and clear separation of concerns
  • Large community and extensive documentation
  • Supports both Bloc and Cubit for flexibility
  • Independent of the widget tree, usable in plain Dart classes.
  • Automatic lifecycle management prevents memory leaks.
  • Supports composition of modules through ownership bindings.
Weaknesses
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Global registry and configuration are process-global, requiring sequential tests.
  • Requires understanding specific spec and binding rules.
WarningsNoneNone
bloc vs view_model: which Flutter package should you use? | pubscout