flutter_bloc_effects 1.0.1
flutter_bloc_effects: ^1.0.1 copied to clipboard
A lightweight companion to flutter_bloc that adds effect streams, listeners, and helpers for one-off UI side effects like navigation, snackbars, and dialogs.
1.0.1 #
- Update dependencies to latest compatible versions.
1.0.0 #
- BREAKING: Simplified
BlocEffectEmittersignature fromBlocEffectEmitter<State, Effect>toBlocEffectEmitter<Effect>.- The mixin now only requires the effect type parameter, making it cleaner and easier to use.
- Update your code:
with BlocEffectEmitter<LoginEffect>instead ofwith BlocEffectEmitter<LoginState, LoginEffect>.
- Changed effects stream from single-subscription to broadcast stream, allowing multiple listeners to subscribe to the same bloc's effects stream simultaneously.
- Improved resource management:
BlocEffectEmitternow properly extendsClosableand ensures the effects stream is closed when the bloc/cubit is disposed. - Updated minimum SDK requirement to Dart 3.0.0 and Flutter 3.10.0.
- Updated dependencies:
flutter_bloc >=8.0.0 <10.0.0,provider >=6.0.0 <7.0.0.
0.2.0 #
- Update dependencies to latest compatible versions.
0.1.0 #
- Initial public release of
flutter_bloc_effects. - Adds
BlocEffectEmittermixin for effect streams on top ofBloc. - Adds
BlocEffectListenerfor listening to effect streams in the widget tree. - Adds
MultiBlocEffectListenerfor composing multiple effect listeners without deep nesting.