Architect your Flutter app the clean way with BLoC

Dev with Ahmad
12 min readApr 27, 2022

To start with, we all know that working solo on a project will be an easy and smooth experience. However, this not the reality in the industry.

One of the essential skills for a Software Engineer is to be able to work on large projects and collaborate with other engineers.

And some of the main areas in software engineering that will make collaboration much easier are code maintainability and readability. Basically, if the code is written in a clean and systematical approach, then fortunately you can add new features on top of it without suffering 😁

For front-end apps, we need to handle three things mainly. Which are, what the user interacts with, the logic performed by the app, and fetching data used in the app.

The combination of the three specified categories is known as “Three-tier Architecture”, which is followed mostly in many of the front-end apps.

The main idea of this architectural style, is to implement separation of concerns. Which means each layer is responsible for one thing only.

For example, if you want to change the UI of the app, then you know that you’ll be dealing with the “presentation” layer.

Another example is if you want to change something in your app APIs, then directly you’ll go…

--

--