0

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?

2

1 Answer 1

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,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.