riverbloc
3.0.0, released a year ago by an unverified publisher
BlocProvider implementation with riverpod as alternative to provider.
WASM-ready
What it does
Provides a BlocProvider implementation using riverpod as an alternative to provider, functioning similarly to StateNotifierProvider. It allows managing state using the BLoC pattern integrated with riverpod providers.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to use the BLoC pattern with Riverpod state management.
- You need a StateNotifierProvider-like experience using Cubit or Bloc.
Skip it when
- You prefer the standard flutter_bloc widget-based provider approach.
- You are not using Riverpod in your application.
Strengths
- Integrates BLoC/Cubit seamlessly with Riverpod.
- Supports conditional listening and state selection out of the box.
Weaknesses
- Adds another conceptual layer by combining two major state management libraries.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
final counterProvider = BlocProvider<CounterCubit, int>(
(ref) => CounterCubit(0),
);Alternatives
Packages that do the same job and could replace riverbloc.
- flutter_bloc
Official and standard widget-based integration for the BLoC library.
86Compare
Works with
Packages commonly used together with riverbloc: ones it builds on, ones built on it, and its own family.