For the past week I have been learning the Bloc pattern. From that, I understand that I have 2 choices to use Cubit and Bloc. Cubit is for simple state, and Bloc is for complex state (that's my understanding between the two). Should I implement Cubit first then later on refactor it to Bloc? Or it all depends on the application?
Asked
Active
Viewed 100 times
0
-
see this answer https://stackoverflow.com/a/63131068/13470875 – Mohammad Rabiee Nasri May 19 '22 at 19:50
-
Does this answer your question? [What is the difference between Cubit and Bloc?](https://stackoverflow.com/questions/63131067/what-is-the-difference-between-cubit-and-bloc) – Mohammad Rabiee Nasri May 19 '22 at 19:50
1 Answers
0
it is better to create a Bloc instead of the Cubit, but if it is for managing things like the theme or the language of the application, ..., to manage a simple state as you say, create a Cubit is fast,

lordyhas
- 360
- 1
- 11