flutter_bloc_provider 0.4.0 copy "flutter_bloc_provider: ^0.4.0" to clipboard
flutter_bloc_provider: ^0.4.0 copied to clipboard

outdated

Flutter provider and disposer widgets for bloc_annotations that will generate BLoC architected code automatically.

flutter_bloc_provider #

Installation #

dependencies:
  flutter_bloc_provider: <latest_version>

Provider #

A BLoCProvider<BLoC> is an Inherited Widget that allows the BLoC to be accessible to all sub widgets. Calling BLoCProvider<BLoC>.of(context) will return the BLoC from the tree.

Make sure you call the dispose method of the BLoCProvider when you are done with it to close any open streams and stop any services.

Disposer #

A BLoCDisposer<BLoC> is a Stateful Widget that wraps a child in a BLoCProvider. The disposer will automatically call the dispose method on the provider when it loses context.

Example #

An extensive example can be found in the root example/ directory.

0
likes
0
pub points
19%
popularity

Publisher

unverified uploader

Flutter provider and disposer widgets for bloc_annotations that will generate BLoC architected code automatically.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bloc_annotations, flutter

More

Packages that depend on flutter_bloc_provider