/bloc

A collection of packages that help implement the BLoC design pattern

Primary LanguageDartMIT LicenseMIT

Bloc

Build Status codecov Awesome Flutter License: MIT Gitter


A collection of packages that help implement the BLoC pattern.

Package Pub
bloc pub package
flutter_bloc pub package
angular_bloc pub package

Overview

Bloc Architecture

The goal of this package is to make it easy to separate presentation from business logic, facilitating testability and reusability.

Documentation

Examples

Dart

Flutter

  • Simple Counter Example - an example of how to create a CounterBloc to implement the classic Flutter Counter app.
  • Login Flow Example - an example of how to use the bloc and flutter_bloc packages to implement a Login Flow.
  • Infinite List Example - an example of how to use the bloc and flutter_bloc packages to implement an infinite scrolling list.
  • Github Search - an example of how to create a Github Search Application using the bloc and flutter_bloc packages.

Web

  • Counter Example - an example of how to use a CounterBloc in an AngularDart app.
  • Github Search - an example of how to create a Github Search Application using the bloc and angular_bloc packages.

Flutter + Web

  • Github Search - an example of how to create a Github Search Application and share code between Flutter and AngularDart.

Articles

Extensions

  • VSCode - extends VSCode with support for the Bloc library and provides tools for effectively creating Blocs for both Flutter and AngularDart apps.

Contributors