Flutter project structure #1393
-
|
How do you structure and organize your Flutter projects when contributing to open-source repositories? Do you follow a particular folder structure (like MVVM, Clean Architecture, or feature-based), or do you keep it simple until the project grows? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
I usually keep things simple in the beginning (basic folders like models, views, widgets, services). |
Beta Was this translation helpful? Give feedback.
-
|
helo
…On Sat, Aug 23, 2025 at 1:14 AM Muhammad Rohan ***@***.***> wrote:
I usually keep things simple in the beginning (basic folders like models,
views, widgets, services).
As the project grows, I move to a feature-based structure where each
feature has its own view, controller/viewmodel, and model.
For architecture, I prefer MVVM with GetX since it’s lightweight and
clear, and most importantly, I ensure the structure is well-documented and
consistent for contributors.
—
Reply to this email directly, view it on GitHub
<#1393 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BWMHE2OKDRA6NMIH36RV3BT3O52Z5AVCNFSM6AAAAACES4EX4KVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJZGMZDENI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
“Honestly, when you start a Flutter project, everything just sits in lib/ and it feels fine at first. But the moment your app grows, it’s like dumping all your clothes in one drawer — messy and hard to find stuff. |
Beta Was this translation helpful? Give feedback.
I usually keep things simple in the beginning (basic folders like models, views, widgets, services).
As the project grows, I move to a feature-based structure where each feature has its own view, controller/viewmodel, and model.
For architecture, I prefer MVVM with GetX since it’s lightweight and clear, and most importantly, I ensure the structure is well-documented and consistent for contributors.