bloc_after_effect 0.3.0 copy "bloc_after_effect: ^0.3.0" to clipboard
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> — combines BlocBuilder with 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 from BlocBuilder, BlocListener, and BlocConsumer.
  • Example app migrated to BlocEffectBuilder.

0.2.0 #

  • Added BlocEffectConsumer<B, S, E> — combines BlocBuilder with an optional state listener and an optional effectListener in a single widget. Parallels flutter_bloc's BlocConsumer, 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 broadcast effects stream and emitEffect().
  • BlocEffectListener<B, E> widget for subscribing to effects with BuildContext.
3
likes
150
points
300
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#bloc #flutter-bloc #state-management #side-effects

License

MIT (license)

Dependencies

bloc, flutter, flutter_bloc

More

Packages that depend on bloc_after_effect