mardi 28 juillet 2020

Flutter: Do I have to create a bloc for each part on my app? What it the best practices?

I'm developing an E-commerce Mobile app, using flutter with Bloc as a Design pattern and flutter_bloc package for simplifying things.

My question is: do I have to create a bloc of each part of my app? is this the best practice for using the BLOC as a design pattern?

For example, at my App on the Home Screen there are some sections like best sellers and offers ...etc, do I have to create a separate bloc for each section? as I guess that way will be there a lot of repeated code as well a lot of files and still can't do it all at once using the same bloc logically.

Aucun commentaire:

Enregistrer un commentaire