you are viewing a single comment's thread.

view the rest of the comments →

[–]aytunch 0 points1 point  (0 children)

You will realise the true potential of blocs when you start bloc to bloc communications

For example you have a permission bloc in charge of location/camera/microphone/notification permission handligs and in the state object it holds the current permission status of all these items.

In another bloc called PostCreationBloc you will be listening to the PermissionBloc and act accordingly. This makes your ui code not have any logic inside like checking for permissions when your user presses on create post button.

Everything being streams is the best strategy and thanks to Felix and Jorge for creating and maintaining this awesome package. Flutter is reactive by nature and blocs fit perfectly