bloc_after_effect 0.3.0
bloc_after_effect: ^0.3.0 copied to clipboard
An extension of Bloc that adds a one-shot UI side-effect stream alongside state, for navigation, dialogs, snackbars, and other fire-and-forget actions.
0.3.0 #
- Added
BlocEffectBuilder<B, S, E>— combinesBlocBuilderwith an effect listener. Rebuilds UI from state and reacts to effects without a state listener. The primary widget for most use cases. - Updated documentation: described all widgets (
BlocEffectListener,BlocEffectBuilder,BlocEffectConsumer) with migration guides fromBlocBuilder,BlocListener, andBlocConsumer. - Example app migrated to
BlocEffectBuilder.
0.2.0 #
- Added
BlocEffectConsumer<B, S, E>— combinesBlocBuilderwith an optional statelistenerand an optionaleffectListenerin a single widget. Parallelsflutter_bloc'sBlocConsumer, but the state listener is optional and an effect listener is added. - Example app migrated to
BlocEffectConsumer.
0.1.0 #
- Initial release.
EffectBloc<Event, State, Effect>base class with broadcasteffectsstream andemitEffect().BlocEffectListener<B, E>widget for subscribing to effects withBuildContext.