Skip to main content

riverpod_effects 1.0.0 copy "riverpod_effects: ^1.0.0" to clipboard
riverpod_effects: ^1.0.0 copied to clipboard

One-time side effects (navigation, snackbars, dialogs) for Riverpod.

1.0.0 #

  • Unified EffectMixin — single mixin works for both sync Notifier and AsyncNotifier. Replaces the previous EffectMixin + AsyncEffectMixin.
  • EffectsNotifier<E, T> — base class extending Notifier<T> with effects pre-applied.
  • AsyncEffectsNotifier<E, T> — base class extending AsyncNotifier<T> with effects pre-applied.
  • createEffectEmitter() — overridable factory for configuring replay.
  • Lazy emitter initialization — emitter is created on first access, not during runBuild(). This avoids the need for on AnyNotifier constraints.

0.0.1 #

  • Initial release.
  • UiEffect — base class for one-time effects.
  • EffectMixin — mixin for sync Riverpod notifiers with automatic lifecycle.
  • AsyncEffectMixin — mixin for async Riverpod notifiers.
  • EffectConsumer — widget to listen and react to effects in the UI.
  • EffectListener — low-level stateful listener widget.
  • EffectEmitter — stream-based effect emitter with optional replay.
4
likes
160
points
9
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

One-time side effects (navigation, snackbars, dialogs) for Riverpod.

Repository (GitHub)
View/report issues

Topics

#riverpod #side-effects #state-management #flutter

License

MIT (license)

Dependencies

flutter, meta, riverpod

More

Packages that depend on riverpod_effects