For a personal project of mine, I have chosen to use a feature-based architecture and implement Flutter Cubit for state management. So I would have feature folders that contain presentation
, domain
and data
layers. Since I will have multiple pages (about 5) that would have to share state between each other, what is the best way to go around about that. Is it ok to have 5 different pages in a single feature, or is it better to be spread around in different features with their own cubits? I'm guessing it's never a good choice to share cubits between features, so I am trying to figure out the cleanest way to do it, that would be susceptible to change.
Asked
Active
Viewed 10 times
0

Mihail Iliev
- 163
- 1
- 8