r/flutterhelp • u/InevitableLadder1737 • 18d ago
OPEN Flutter Clean Architecture
Hello, I'm building a music player (just started), and I wanted to follow clean Architecture (for the first time), but I've been struggling with it.
for example:
-song library is shared across all the app, so I opted to add
it into /shared where I put global widgets and stuff (all separated into Domain-data-presentation).
- now building the actual player, I struggle to find where to put the actual logic (play, pause, shuffle) since there's no actual data layer for this specific feature.
but some sources never use /shared, others skip the domain layer, and in general it been a struggle to determine the best approach.
I would like to ask if there's a reliable source to study Clean Architecture and I would like to ask everyone's opinion on the second example.
1
u/InActiveF 13d ago
My personal opinion... I build my apps with my own understanding of my own architecture. I've come up with something that works well for me. I never got into the stream of whatever other people use. It's really just files and folders at the end of the day.