0% found this document useful (0 votes)
570 views

Clean Architecture of Flutter App

The document discusses the structure of a clean architecture project. It proposes organizing the code into core, features, presentation, domain, and data folders. The domain layer would contain entities, repositories, and usecases. The data layer would contain datasources, models, and implementations of repositories. Usecases are classes containing the logic for a particular use case. The presentation layer would have blocs, pages, and widgets. The core folder holds shared functionality across the app.

Uploaded by

Hanan Elsa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
570 views

Clean Architecture of Flutter App

The document discusses the structure of a clean architecture project. It proposes organizing the code into core, features, presentation, domain, and data folders. The domain layer would contain entities, repositories, and usecases. The data layer would contain datasources, models, and implementations of repositories. Usecases are classes containing the logic for a particular use case. The presentation layer would have blocs, pages, and widgets. The core folder holds shared functionality across the app.

Uploaded by

Hanan Elsa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Exported Data file:///C:/Users/Ahmed/Downloads/Telegram%20Desktop/ChatExport...

Clean Architecture

23 April 2021

History cleared

20 September 2021

Ahmed Muhammed changed group title to «Clean Architecture»

Ahmed Muhammed 21:43


AM
image_2021-09-20_21-43-33.png
Not included, change data exporting settings to
download.
15.6 KB

folder in the lib called features

for login feature you should make a folder 21:43

for example. 21:43

21:44

image_2021-09-20_21-44-53.png
Not included, change data exporting settings to
download.
24.5 KB

here we make 3 folders as follows

21:46

image_2021-09-20_21-46-03.png
Not included, change data exporting settings to
download.
7.3 KB

we make a core folder for functionalities shared across the app such as
checking if the input is number or not

21:50

image_2021-09-20_21-50-47.png
Not included, change data exporting settings to
download.
33.7 KB

In reply to this message 21:51


inside presentation: we should have three folders: bloc pages and
widgets

21:53

image_2021-09-20_21-53-12.png
Not included, change data exporting settings to

1 of 2 3/7/2022, 8:42 PM
Exported Data file:///C:/Users/Ahmed/Downloads/Telegram%20Desktop/ChatExport...

download.

Clean Architecture
89.7 KB

domain layer will contains business logic inside the usecases

In reply to this message 21:53


business objects will be called entities

In reply to this message 21:54


Usecases are classes that contains all the logic of a particular usecase

so for random trivia example we will have 2 usecases classes: 21:56


GetConcreteNubmerTrivia and GetRandomTrivia

Ahmed Muhammed 23:21


AM
image_2021-09-20_23-21-14.png
Not included, change data exporting settings to
download.
29.3 KB

Now in the domain folder, three folders will be

entities repositories and usecases 23:21

23:26

image_2021-09-20_23-26-40.png
Not included, change data exporting settings to
download.
26.9 KB

Now data folder will contains

will contains datasources , models and implementation of 23:27


repositories

2 of 2 3/7/2022, 8:42 PM

You might also like