felangel / bloc

A predictable state management library that helps implement the BLoC design pattern
https://bloclibrary.dev
MIT License
11.79k stars 3.39k forks source link

docs: Two features on one screen (flutter_todos example) #3395

Closed makanddream closed 2 years ago

makanddream commented 2 years ago

Hello, Thanks for your great and powerful library, I would need your lights concerning a flutter desktop application. My architecture is as follows on a single page there are 2 features:

jasperng

Since I have two functionalities, I told myself that I had to separate them into two separate blocs. So, I took the example of the “flutter_todos” application with TodosOverview and EditTodo. In this example we have the same principle but on a separate page. In my case the two features are on the same page and I don't know how to instantiate my EditTestBloc bloc correctly since now it is on the same page.

Do you have any advice to help me with my problem ?

Thank you in advance for your time, I'm still a junir developer 😊

makanddream commented 2 years ago

I closed this topic, my question should not be here but rather in the discord server! Sorry for the inconvenience and pollution of the repo! 😕