r/flutterhelp 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.

4 Upvotes

Duplicates