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?

Jai
  • 15
  • 4

1 Answers1

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