A predictable state management library that helps implement the BLoC design pattern.
| Package | Pub |
|---|---|
| bloc | |
| flutter_bloc | |
| angular_bloc |
The goal of this library is to make it easy to separate presentation from business logic, facilitating testability and reusability.
- Counter - an example of how to create a
CounterBloc(pure dart).
- Counter - an example of how to create a
CounterBlocto implement the classic Flutter Counter app. - Login Flow - an example of how to use the
blocandflutter_blocpackages to implement a Login Flow. - Infinite List - an example of how to use the
blocandflutter_blocpackages to implement an infinite scrolling list. - Github Search - an example of how to create a Github Search Application using the
blocandflutter_blocpackages. - Weather - an example of how to create a Weather Application using the
blocandflutter_blocpackages. The app uses aRefreshIndicatorto implement "pull-to-refresh" as well as dynamic theming.
- Counter - an example of how to use a
CounterBlocin an AngularDart app. - Github Search - an example of how to create a Github Search Application using the
blocandangular_blocpackages.
- Github Search - an example of how to create a Github Search Application and share code between Flutter and AngularDart.
- bloc package - An intro to the bloc package with high level architecture and examples.
- flutter login tutorial with flutter_bloc - How to create a full login flow using the bloc and flutter_bloc packages.
- unit testing with bloc - How to unit test the blocs created in the flutter login tutorial.
- flutter infinite list tutorial with flutter_bloc - How to create an infinite list using the bloc and flutter_bloc packages.
- code sharing with bloc - How to share code between a mobile application written with Flutter and a web application written with AngularDart.
- weather app tutorial with flutter_bloc - How to build a weather app which supports dynamic theming, pull-to-refresh, and interacting with a REST API using the bloc and flutter_bloc packages.
- VSCode - extends VSCode with support for the Bloc library and provides tools for effectively creating Blocs for both Flutter and AngularDart apps.