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
graft

Self-optimizing state management and dependency injection engine for Flutter with zero code generation.

pub.devRemove
ScoresHealth91 (best)67
Maintenance7391 (best)
Quality100100
Popularity97 (best)24
Community100 (best)0
Compatibility100100
UsageDownloads (30 days)2.5M (best)1.5k
Likes3.2k (best)5
Pub points160 / 160160 / 160
GitHub stars12k (best)1
MaintenanceLatest release9.2.1, 6 months ago1.0.0-alpha.10, 2 weeks ago (best)
Major versions in 12 months00
Contributors100+ (best)0
Publisherbloclibrary.devUnverified
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoYes
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
  • Zero code generation required for models
  • Surgical field-level UI rebuild precision via bitmask diffing
  • Lazy universal dependency injection with type-safe scopes
  • Synchronous frame-0 persistence hydration
Weaknesses
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Relies on mutable state classes and cascade assignments
  • Alpha stability level with potential API shifts
WarningsNoneNone
bloc vs graft: which Flutter package should you use? | pubscout