Bloc Extensions
Packages
Package | Version |
---|---|
action_bloc | |
action_bloc_test | |
flutter_action_bloc | |
flutter_action_bloc_hooks | |
flutter_bloc_hooks |
Bloc Hooks
Bloc hooks provide an easy way to use blocs from HookWidget
s and other hooks without needing to access the current BuildContext
or unnecessary deep nesting using BlocBuilder
s
and BlocListener
s.
Example
Action Blocs
ActionBloc
s are bloc with an additional stream for actions (side effects). When using sealed classes (for example with freezed) as state side effects cannot easily be modeled
inside the state. Examples for such side effects include showing error messages or navigating to another screen.
Example
Contributing
This repository uses melos for managing all packages. To get started first install melos and then run it’s bootstrap
command.
dart pub global activate melos
melos bootstrap
More information about melos can be found on https://melos.invertase.dev. All available scripts can be seen in melos.yaml
.