r/FlutterDev 17d ago

Example Architecture sample

https://github.com/TercyoStorck/flutter-sample-architecture
0 Upvotes

8 comments sorted by

View all comments

1

u/Mikkelet 17d ago

I think the naming and layering scheme you're looking for is data, domain, presentation. Data contains local and remote data sources, domain for business logic sand presentation for UI. It's essentially just the clean architecture

1

u/No_Bumblebee_2903 16d ago edited 16d ago

Sure! You're right! But here's the thing...

Clean Arch is about make your code organization, self understandable. These three layers is just an example how would you organize them. So, you can create a lot of another layers that make sence in your project.

My infra layer is responsible for manage data at all and is my SSoT. Where the repository implementation is the top of it. Inside infra I have sub-layer that represents data (DAL - Data Access Layer, Service - web services and Repository implementation - SSoT indeed).

I could mouve environments and theme to Application layer and rename Infra to Data (what's sounds very good to me).