Flutter-Clean Architecture using GetX State Management

Ashiqul Islam Shaon
2 min readJun 19, 2021

--

Clean Architecture

There are a lot of examples to manage State in Flutter Development. Today, I am writing about an architecture that I try to follow in every development. Ok, Let’s dive into the topic.

Curiosity

Are you curious about this? Let’s find out what you are going to learn.

What is GetX?

GetX is an extra-light and powerful solution for Flutter. It combines high- performance state management, intelligent dependency injection, and route management quickly and practically.

So, in this article, we will discuss about this three things.

Implementing our networking and db services.

BaseController,

In this class, we initialised our network service instance. So, every controller will have access to this instance.

Here we implemented a home controller and access our restclient from base controller. Here we load data from server and implemented pagination.

This how, we add dependency to our Home Page.

For more,

Here is the architecture link to follow…

--

--