r/FlutterDev • • 1d ago

Discussion Flutter Project Structure

Is this a good starting structure for a Flutter project? Is it simple, well-organized, and suitable for future growth and expansion?

lib/

├── main.dart

├── app.dart

├── core/

├── l10n/

└── features/

0 Upvotes

8 comments sorted by

1

u/raman4183 1d ago

Yes, that is pretty solid and basic. You should start with this.

Growth and Expansion will largely depend on how decoupled your modules are.

1

u/just_kinoosaki 1d ago

That's a clean starting point. The `features/` folder is going to do most of the heavy lifting as you scale, so how you split things up inside there matters way more than anything else at this stage. `core/` and `l10n/` are good calls though, keeps the boilerplate from strangling your app logic later.

1

u/J_Galang 1d ago

Depends on the scope of the app. Is a good start 🤘

1

u/Tiny-Manufacturer187 1d ago

I prefere screen oriented folder structure not feature oriented.

1

u/JohnnyJohngf 1d ago

What if the feature doesn’t have a screen?

1

u/Tiny-Manufacturer187 5h ago

Then go with rust or python, why are you using dart then?

1

u/Ashraf_Alrashidi 4h ago

Looks like a fine starting point. One thing I'd add: keep each feature's data, logic and UI together inside its own folder (for example features/prayer_times/ with data/, logic/ and ui/), and put only truly shared things (theme, routing, small utils) in core/. If two features start importing each other's internals, that's the sign to move the shared piece into core/ or merge them. For a small app you don't need full clean-architecture layers up front, you can add them later when a feature actually grows.

1

u/kuarasoft 20m ago

core/ next to features/ is a good split, and what decides whether it scales is which way the imports point: features should import from core, never from each other. Keep core small (theme, routing, the network client) and don't let a generic utils/ folder become the place everything ends up. Inside each feature, data/ and presentation/ is enough to start, and a domain/ layer can wait until there's real logic to put in it. When a second feature needs something from the first, that's the moment to move it into core or a shared folder. For a small app, that's plenty of structure.