I'm learning flutter by building app. I've implemented BLoC pattern
to call rest api and provide data to the widgets. However per my understanding this is some data for the view which needs it. I want to have Settings
button on most of the widgets where I can display current logged user information, able to change his language, theme, some specific selected data etc. Basically base state of the application. Is the BLoC pattern
the approach for that? Or there is better way to that?
If yes, what is the way to do that. How can I handle multiple StreamBuilder
, e.g. one for receiving the data from api and one to update the state?
I know I can do it dummy with singleton class and register it using get-it plugin
, but if there is better way I would skip this.