bloc_presentation 1.1.2+2 copy "bloc_presentation: ^1.1.2+2" to clipboard
bloc_presentation: ^1.1.2+2 copied to clipboard

Primitives for dispatching single-time side effects (navigation, snackbars, dialogs) from Blocs and Cubits without polluting state. Drop-in BlocPresentationMixin and BlocPresentationListener for one-s [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add bloc_presentation

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  bloc_presentation: ^1.1.2+2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:bloc_presentation/bloc_presentation.dart';
87
likes
150
points
68.5k
downloads

Documentation

API reference

Publisher

verified publisherleancode.co

Weekly Downloads

Primitives for dispatching single-time side effects (navigation, snackbars, dialogs) from Blocs and Cubits without polluting state. Drop-in BlocPresentationMixin and BlocPresentationListener for one-shot presentation events in Flutter.

Repository (GitHub)
View/report issues

Topics

#bloc #cubit #state-management #side-effects #presentation

License

Apache-2.0 (license)

Dependencies

flutter, flutter_bloc, nested

More

Packages that depend on bloc_presentation