Skip to content

Examples of the Flutter starter incrementer app with multiple BLoC pattern implementations.

Notifications You must be signed in to change notification settings

palancana/bloc_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Examples of BLoC Usage

A compilation of commented Flutter starter incrementer app examples, that uses BLoC.

Implementations

  • Local Instance: This example uses a plain local instance, which can be good enough for some situations.

    final incrementBloc = IncrementBloc();
  • Ancestor Provider as Stateful Widget: A generic bloc provider (code by Didier Boelens) can instantiate any BLoC that implements the provider. It can then be accesed like:

    IncrementBloc incrementBloc = BlocProvider.of<IncrementBloc>(context);

Acknowledgement

The examples were done thanks to the fantastic explanation from these articles:

About

Examples of the Flutter starter incrementer app with multiple BLoC pattern implementations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published