Flutter Folder Structure and Packages

preview_player
Показать описание

00:00 Overview
00:32 Folder by Type
01:34 Folder by Layer
02:15 Folder by Feature
03:14 Dart Packages
07:02 Announcement

····················································································

····················································································

Рекомендации по теме
Комментарии
Автор

Please make tutorial: folder by feature architect + riverpod hooks + flutter hooks + firebase

Lensbreak
Автор

This was informative. Thank you for the video, not many people have talked about this stuff before.

SarveshBhatnagar
Автор

data -> models,
services -> local, http
ui -> screens -> screen1, screen2
widgets
blocs -> bloc1, bloc2

JarkynbekBatyrov
Автор

Very nice work Robert, I've started using folder by feature. This really makes it easy to migrate to a package when needed. Best, Karl

somevideos
Автор

Folders under lib: models, views, controllers, and services. MVC+S design pattern. The views folder has a folder for each page/screen with the page widget and all widgets on the page in the same sub-folder. Widgets used by multiple pages are in the root of the views folder.

davidowens
Автор

I'm using by layer for my biggest project (also my first) and it's quite annoying, but changing it is also frustrating. For all other projects I use by features even for the small ones it makes so much more sense to me

mathb
Автор

Your videos are really the best out there. I haven't yet but I really consider donating via your Patreon which would be the first time I use Patreon ever.

miroliebschner
Автор

Very very very great video ❤
I was looking for a way to make my code reusable to use it in multiple projects and I've found it! ❤
Thanks a lot, sir ❤

moazelsawaf
Автор

Hi Youtuber! Thank you! I liked this video. I was struggling with adding dependency in Flutter project which dependencies were ignoring each other. The Package Structure Folder approach gives me an idea how to handle that issue. Nice job!


ФирузВорисов
Автор

Thank you so much Robert. I generally used to make screens, models kind of structure. But folder by feature is really great approach i liked it. And i have already subscribed to your emails on your website. God bless you always :)

nikhilkukreja
Автор

thanks for this video! ;-) Good explanation of Packages / Modules

adambartosik
Автор

Waiting for a full project tutorial based on folder by feature architect + riverpod + flutter hooks 🤪

PadamShrestha
Автор

Good information, helpful for big projects.

arsarsars
Автор

This is really awesome. I'll follow up this structure . Thanks 😊

AkashdeepSingh-myrr
Автор

Exactement le tutoriel que je recherchais ! Merci !

albanr
Автор

The Stacked pattern from FilledStacks makes the most sense to me for production. This brings a lot of folders and .dart files into your structure but in my experience, most of the time it’s better to work in laid out, readable projects/code than it is to work with condensed code or folders in the effort to look clean and efficient.

ianmcelvain
Автор

I have had a problem if should I use struct by layer or feature and how to separate a part of application for another one. Now, it seems clearly for me, thanks

rsajdok
Автор

Thank you Robert. Could you please make a video for explaining repository-services-stores-ui layered architecture especially suggested by mobx? Especially, I don't get what is repository and services layers and how to create and use them.

ddsouI
Автор

Mine is folder by feature but I make additional folder(as per folder by layer) inside each feature

lib
--feature1
----ui
----bloc
----data
--feature2
---ui
---bloc
---data

gyakhoe
Автор

Robert.. thanks a lot for this video.. I think I would love to see the structure of a one of your big projects in a video.. There are many challenges also (I think) in terms of organizing big projects by features...specially when in a big project you may have 50-120 pages and each page may have 10 to 50 features..

fabsync
join shbcf.ru