Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebloc_tools

Command-line tools for generating and linting bloc and cubit components.

pub.devRemove
context_ref

Provide and retrieve values scoped to a BuildContext with automatic disposal.

pub.devRemove
ScoresHealth88 (best)58
Maintenance90 (best)18
Quality100 (best)96
Popularity72 (best)50
Community80 (best)58
Compatibility100100
UsageDownloads (30 days)76k (best)9k
Likes27 (best)13
Pub points160 / 160 (best)150 / 160
GitHub stars12k (best)38
MaintenanceLatest release0.1.0-dev.25, 8 weeks ago (best)3.2.3, a year ago
Major versions in 12 months00
Contributors100+ (best)4
Publisherbloclibrary.devsonerik.dev
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies62 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Automates the creation of boilerplate code for multiple bloc variants
  • Integrates official bloc linting commands
  • Automatic disposal of bound objects tied to the widget lifecycle
  • Minimal boilerplate compared to traditional InheritedWidget setup
  • Supports lazy initialization and pre-existing value binding
Weaknesses
  • Requires global activation via pub
  • Limited to command-line utility functions
  • Requires a root widget wrapper (`ContextRef.root`)
  • Tightly coupled to the widget tree via BuildContext
WarningsNoneNone
bloc_tools vs context_ref: which Flutter package should you use? | pubscout