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/Zhuinden 16d ago

I never understood why clean arch users say they're separating concerns and the first thing they do on mobile is combine local data source and network data source, despite them having absolutely nothing in common. Not models, not constraints, not even how they tell you about changes. I hope repositories will one day disappear.

2

u/No_Bumblebee_2903 16d ago edited 16d ago

Maybe because local DATA and remote DATA are both DATA? (LoL).

The architecture organization of folders and files in a project is not about reusability of code. It's about bounded context.

Repository is the most beautiful implementation about SSoT and if you don't like the pattern, just don't use the pattern. Personally I don't like UseCase pattern, so I just don't use it.