bloc_signals_flutter
1.5.0, released 6 weeks ago by blocsignal.dev
Flutter UI extensions, providers, and bindings for the bloc_signals state management library.
What it does
Provides Flutter widgets like BlocSignalBuilder, BlocSignalListener, and BlocSignalConsumer, dependency injection via BlocSignalProvider, and BuildContext extensions to bridge the bloc_signals state management library into Flutter applications.
AI-written summary of version 1.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using the bloc_signals state management library in a Flutter application.
- You need fine-grained reactive builders, side-effect listeners, and selectors for state containers.
- You require dependency injection and lifecycle management for state containers via InheritedWidget.
Skip it when
- You are using standard BLoC/Cubit without signals (use flutter_bloc instead).
- You are building a pure Dart application without Flutter.
Strengths
- Synchronous and fine-grained reactive updates using signals.
- Comprehensive suite of provider, builder, listener, and consumer widgets.
- Seamless interop with Flutter Listenable and ValueListenable.
Weaknesses
- Tied directly to the bloc_signals ecosystem.
- Requires learning the conventions of both BLoC and Signals.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
BlocSignalBuilder<CounterBloc, int>(
builder: (context, state) => Text('Count: $state'),
)Alternatives
Packages that do the same job and could replace bloc_signals_flutter.
- flutter_bloc
If you prefer the traditional BLoC and Cubit pattern without the signals library backend.
86Compare - flutter_riverpod
If you prefer a compile-safe, provider-first state management architecture.
93Compare
Works with
Packages commonly used together with bloc_signals_flutter: ones it builds on, ones built on it, and its own family.