Is this a suitable approach to architect a flutter app?

hey everyone i come from a dotnet environment and I wanna see if this way of doing clean architecture suits flutter ( I am intermediate level in flutter it's just the architecture and project structure that always buggs me ) Image for my current folder structure in flutter lets dive in into how I usually structure my application : Application layer : this contain the abstractions of the application from interfaces concerning services / repositories to dtos Domain layer : This holds the core business logic entities + validation for the entities (no use cases i don't feel that they are necessary it just boilerplate for me at least but feel free to prove me wrong i of course came here to learn more) Infrastructure layer : data access (implementations for the abstractions of the application layer services / repositories ) Presentation Layer: Client Side / Ui logic ( I usually use bloc the presenter/manager ) Questions : is this suitable ? and how can i improve on this

Apr 1, 2025 - 08:51
 0
Is this a suitable approach to architect a flutter app?

hey everyone i come from a dotnet environment and I wanna see if this way of doing clean architecture suits flutter ( I am intermediate level in flutter it's just the architecture and project structure that always buggs me ) enter image description here Image for my current folder structure in flutter

lets dive in into how I usually structure my application :

Application layer :

this contain the abstractions of the application from interfaces concerning services / repositories to dtos

Domain layer :

This holds the core business logic entities + validation for the entities

(no use cases i don't feel that they are necessary it just boilerplate for me at least but feel free to prove me wrong i of course came here to learn more)

Infrastructure layer :

data access (implementations for the abstractions of the application layer services / repositories )

Presentation Layer:

Client Side / Ui logic ( I usually use bloc the presenter/manager )

Questions : is this suitable ? and how can i improve on this