Reputation: 593
Google suggests the use of the BLoC pattern to manage the state of a Flutter app. I have read that together with rxdart
, it is the most convenient and complete way to manage the state. So, I would like to understand and learn that pattern.
Unfortunately, it seems that there is no complete and exhaustive documentation. Can somebody explain to me clearly this pattern and its implementation in a Flutter app?
Thanks!
Upvotes: 1
Views: 1305
Reputation: 735
If you are still interested in this topic I would recommend flutter_bloc library and its official documentation. It makes working with this pattern a real pleasure. If you will be looking for more practical usage of this library I have recently written a blog post on this topic.
Upvotes: 2
Reputation: 12287
You can check this article - Bloc pattern for Flutter on the classic counter example.
There is clear explanation of BLoC and working example of "classic" counter app rewritten with BLoC pattern.
Upvotes: 0
Reputation: 312
Here some helpful links. Those are explanations with examples made by Didier Boelens :
The basics with streams and BLoC pattern (Reactive Programming - Streams - BLoC)
A bit deeper and practical exemple (Reactive Programming - Streams - BLoC - Practical Use Cases)
A comparison between BLoC, ScopedModel and Redux (BLoC - ScopedModel - Redux - Comparison)
It helped me a lot and I hope you will find what you want too.
Upvotes: 1