Flutter Clean Architecture - Learn By A Project | Full Beginner's Tutorial

Flutter Clean Architecture - Learn By A Project | Full Beginner's Tutorial

Flutter Guys

11 месяцев назад

188,000 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Odilbek Rustamov
Odilbek Rustamov - 16.10.2023 16:12

thanks

Ответить
Avinash Kr Shudhanshu
Avinash Kr Shudhanshu - 13.10.2023 18:03

DioError is deprecated.

Ответить
Leo Francis
Leo Francis - 06.10.2023 20:53

do we really need usecases why cant we use repositories instead of usecases directly.

Ответить
Omkar P
Omkar P - 02.10.2023 18:30

At first, I thought the video was playing at 1.5x speed😐
Btw...thanks for this video!!

Ответить
Ankit Srivastava
Ankit Srivastava - 01.10.2023 18:37

For those whose build_runner command is not working add retrofit_generator in dev_dependencies.

Ответить
belom asmelash Gebremariam Gebrzabher
belom asmelash Gebremariam Gebrzabher - 29.09.2023 19:59

Kemey kevselsm do asmelash

Ответить
Junaid's Coding Corner
Junaid's Coding Corner - 29.09.2023 14:12

Amazing

Ответить
Huda Huda
Huda Huda - 29.09.2023 05:15

What a great video, thanks alot !!

Ответить
sarawanak
sarawanak - 25.09.2023 20:45

Go to video for one who wants to learn Clean Architecture with a real world example. Definitely a good watch & bookmark for me for Future references. Thanks a lot for the valuable content. I had to pause and watch to understand, the content is very intense.

Ответить
Arturo Martinez
Arturo Martinez - 21.09.2023 21:26

its better have data/domain/presentation as main layers, and then add by module like data/auth/..., that repeat on each feature all the auth/domain/data... layers, having many directories make it complex to read.. simple its better always

Ответить
Zorkan
Zorkan - 21.09.2023 02:04

Ответить
Lee Vaughn
Lee Vaughn - 20.09.2023 18:22

If you have multiple features for an app, would you not want to put the app database class and its generated floor code in the core package? Having it in the news feature package would make sense if that feature was going to be standalone module but Im not familiar with how that works in flutter and Im assuming thats not the case here.

Ответить
No Name
No Name - 15.09.2023 21:13

Бро просто сделал титаническую работу. Спасибо

Ответить
yousef ashraf
yousef ashraf - 15.09.2023 12:21

Thank you very much for sharing this knowledge 🙏💚. I wanted to ask if I had many models, entities, and api services. Every time I run "build_runner build," will I have to edit all the api services to work properly the same way we did it in this video?

Ответить
Dyecks
Dyecks - 15.09.2023 01:20

Please put subtitles on your videos. Today with AIs it is so simple and easy! This way, people from all over the world can see your videos.

Ответить
Amaury Ricardo
Amaury Ricardo - 06.09.2023 15:59

Nice 🚀🚀. I use to use clean arch. using modules instead, couse of scalability, imagine an app like uber that has four apps (eats, user, drivers, deliveries) different apps, with módules you can share most of the code for each app. Obviusly this will depends on the business, for a single app, this is it 🚀🚀

Ответить
Anil kumar
Anil kumar - 05.09.2023 13:51

why not hive? retrofit really need dio can do most of the work ?

Ответить
Алексей
Алексей - 02.09.2023 11:41

Very bad idea to edit generated files

Ответить
juan f garcia
juan f garcia - 31.08.2023 21:10

I did not understand anything 🙃

Ответить
Amit Thakur
Amit Thakur - 30.08.2023 09:58

Hello, can you tell how to pass bloc reference from one screen to others.

Ответить
KUTTUSAN YT
KUTTUSAN YT - 30.08.2023 07:54

instead of DataSuccess and DataFailed we can use Functional programming..

Ответить
phương trần
phương trần - 30.08.2023 05:03

Sir you just earned a new subscriber

Ответить
Hiskel Kelemework
Hiskel Kelemework - 30.08.2023 00:08

great video! one question, is it safe updating generated files by hand ? what happens when you rerun the build command ? will your manual updates not be overriden ?

Ответить
MinSeok Jeong
MinSeok Jeong - 27.08.2023 12:05

Recently I'm thought about what is good architecture for flutter project. And I met this channel and this Clean Architecture is blowing my mind. This video has concrete example so I can learn the folder structure and concepts of clean architecture. Thanks you from bottom of my hearts❤. From S.Korea as Flutter position developer.

Ответить
Voltra
Voltra - 24.08.2023 16:04

The DAO should be injected, not the whole database

Ответить
Emily Wagner
Emily Wagner - 24.08.2023 11:29

When I have written in MVC, I've usually had another project called Domain.Shared as well as Domain. Is this a good idea for a Flutter project? What about class inheritance? As an example. A BaseEntity to hold/contain shared properties between entity classes?

Ответить
Max C
Max C - 21.08.2023 19:22

Hi, great video. May I know what extension are you using for the folder icon?

Ответить
Adrian k
Adrian k - 17.08.2023 14:01

The summary: we need to write hundreds of lines of boilerplate because otherwise it's against the rules of clean architecture.

Remember that each line you write needs to be computed. The less code, the faster is your app, the more maintainable it is etc.

You don't need classes for success and failure when you just can use Either from fpdart, you dont need entity and model if you can use freezed to do all of it. You don't need half of clean architecture when you can use retrofit. You don't need the second half when you use riverpod. Let those libraries generate boilerplate for you. They output optimized and tested code so you don't need to worry about performance too much.

Ответить
Ehud Pinhas
Ehud Pinhas - 16.08.2023 10:31

Thank you for this great explanation
Can you please share the updated repo?
the repo in the link is not updated
Best Regards,

Ответить
Furkan Söylemez
Furkan Söylemez - 16.08.2023 08:35

Firstly, thanks for the video. Great explanations with great content.

I have two questions.

1. Is it a good practise extending dataModel from entity? I think they should be seperate totally and we can use a mapper class for entity->model or model->entity transformations.

2. Is using methods like _buildAppBar and _buildBody legal? I agree with you, the code looks organized but I think flutter doesn't recommend doing this due to performance issues.

What do you think?

Ответить
TheNightGuy
TheNightGuy - 15.08.2023 21:39

The folder structure is a bit complex, but a great video nonetheless. I would much like to see a cleaner implementation without relying on multiple dependencies. A question, at this moment, i was working on a hobby project of mysql node js api which i could call using retrofit. Flutter Bloc has went through a lot of updates. If Possible Please do an indepth video on Hydrated Bloc pattern and Retrofit CRUD Requests Would love to see your take on that.

Ответить
Go Full Stack
Go Full Stack - 15.08.2023 19:49

The moment I see someone define a method called fromJson() or toJson() that doesn't actually deal with JSON (JSON Serialisation) I'm out 🤣🤣

Ответить
Six Graphics
Six Graphics - 15.08.2023 11:31

Your talking faster, as you talk with pro not beginners, just upload Normal video playback

Ответить
عقلية ثرية
عقلية ثرية - 14.08.2023 17:05

thnx, please a clean aechitecture project with Hive and bloc

Ответить
Michael Elimu
Michael Elimu - 13.08.2023 05:30

Do you have a course on udemy?

Ответить
Dylan Roman
Dylan Roman - 10.08.2023 23:24

The video I should have seen before starting the application I’m working on xD

Ответить
Nuriddin Burkhonov
Nuriddin Burkhonov - 10.08.2023 07:31

I hate the annoying AI generated voice.👎

Ответить
Maplestory
Maplestory - 08.08.2023 13:17

How to prevent retrofit auto generate file news_api_service.g.dart because we will fix it for response in manual hand

Ответить
Mitu Barman
Mitu Barman - 08.08.2023 11:22

I am quitting flutter 😭

Ответить
Jim Yang
Jim Yang - 07.08.2023 23:44

It's not really clean, the folder structure actually makes me confused :), but it's still a great video, thanks for sharing!

Ответить
Diego Martins Vieira
Diego Martins Vieira - 07.08.2023 21:58

Tks, great content, i've learned a lot with your videos.
Just one point. I dont like to my domain depend on dio package. Dio is a infrastructure concern

Ответить
Mohammad Zamani
Mohammad Zamani - 07.08.2023 17:37

Most clean architecture projects focus on working with apis. What if you have firebase as backend? Which layer should you put your firebase methods in?

Ответить
Kasun Vithanage
Kasun Vithanage - 05.08.2023 20:47

Can't we do this with riverpod?

Ответить
Yusuf Elyıldırım
Yusuf Elyıldırım - 04.08.2023 23:27

simple explanation, great video. Im looking forward for new videos keep going man

Ответить
VLADISLOVE
VLADISLOVE - 01.08.2023 16:30

great work and cool video!)
it whould be very interesting to see the same topic in some depth: pagination.
how to handle state when we have pagination in items list?
and what if we need save all content, not only selected by user, for displaying when there are no conection?

Ответить
King is Back
King is Back - 31.07.2023 20:30

Not getting anything

Ответить