Skip to content

RichardCubed/flutter_template_bloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter-template-bloc

A (fairly) simple Flutter template that implements the BLoC pattern, Google's recommended approach to state management in Flutter apps. For a little extra sauce the BLoC class uses RxDart streams to pass data to the UI widgets.

I've been building and testing this on iOS but the Android project should run without issues.

Installation

Simply clone the repo, start the iOS simulator and run the application. For the purpose of keeping things simple the repository returns mock data. That said there's an example of how to make an async API call using futures should you be interested.

open -a Simulator
flutter run

Contributing

I've intentionally kept things as close to Google's recommended approach as possible but feel free to open a pull request if you think it could be made simpler for Flutter novices to understand.

License

MIT

About

An example of Google's BLOC pattern for Flutter apps.

Resources

Stars

2 stars

Watchers

4 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors