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
theme_provider

Easy to use and customizable Theme Provider with persistence and dynamic switching.

pub.devRemove
ScoresHealth92 (best)50
Maintenance74 (best)0
Quality100 (best)96
Popularity97 (best)71
Community100 (best)11
Compatibility100100
UsageDownloads (30 days)2.5M (best)5.9k
Likes3.2k (best)311
Pub points160 / 160 (best)150 / 160
GitHub stars12k (best)149
MaintenanceLatest release9.2.1, 6 months ago (best)0.6.0, 4 years ago
Major versions in 12 months00
Contributors100+ (best)2
Publisherbloclibrary.devUnverified
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
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
  • Easy setup for multi-theme apps with custom theme IDs and descriptions
  • Built-in disk persistence via shared preferences
  • Includes helper widgets like theme cycling icon buttons and selection dialogs
Weaknesses
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Does not dynamically listen to system theme changes automatically out of the box on start without custom callbacks
  • Requires wrapping routes or the material app with specific consumer widgets
WarningsNone
  • Unverified publisher
bloc vs theme_provider: which Flutter package should you use? | pubscout