Bloc Architecture in Flutter: Important notes and my own take

Adrian Silva
1 min readJul 8, 2021

From personal experience with Flutter I always thought that for almost all my projects something important was missing. I’d always go to articles that would inform me about proper ways of structuring a Flutter project when you are just starting. From folders such as utils to folders like core and configuration. But in reality, one goes to think that by structuring your project and breaking it up into different folders we’re actually separating the logic of the app from its UI.

In Flutter is very common for beginners to implement a heavy computation or the business logic of the application inside Widget classes such as Stateless or Stateful. The problem with the above is that we ended creating a Widget class that is 2000 long in code within the first couple of hours of starting a new project. This always frustrated me until I found Bloc.

--

--