Member-only story
First Steps Towards Clean Arch In Flutter
Since I have to build some apps for my flutter app design series, I might as well do that out in the open and show you some stuff to learn. My first flutter app demo is one that accesses the starwars API:
Let’s start with getting you to a basic understanding of implementing clean architecture in flutter apps.
What Is The Domain Layer
What is the domain layer in clean architecture? It’s the core of the App and the API, so that means what in Dart computer language terms? That means that our Domain layer has two basic OOP structures:
- Abstract Classes
- Base Classes
In other words, an abstraction of what we are going to implement in other layers of the clean architecture of the flutter app. So let’s dive a little into how the other clean architecture layers relate to the domain layer.
The Other Clean Arch Layers
Domain->Data Layer Implementations->App Services and UI->Infrastructure