Mastering Clean Architecture & Repository Pattern in Flutter

  Рет қаралды 22,995

David Serrano

David Serrano

Күн бұрын

Пікірлер: 39
@oscarisorez7829
@oscarisorez7829 Жыл бұрын
This video is a gold mine of information
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
Thanks ☺️
@martinmj94
@martinmj94 Жыл бұрын
So impressed and grateful for how clear and well paced this tutorial was. I have not used the data/domain/presentation architecture before but will attempt to implement it in my current project at work using this video as a reference.
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
I am very glad that it has been useful to you! Thank you very much for your support 🙂
@MultiDesignWork
@MultiDesignWork Жыл бұрын
Great tutorial, you have a great pace for tutoring, something that is lacking at a lot of Flutter videos.
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
Thank you! And thank you also for the compliment 🤗
@Inandoutpk
@Inandoutpk Жыл бұрын
Thank you so much for this wonderful tutorials.
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
You're welcome! :)
@Inandoutpk
@Inandoutpk Жыл бұрын
​@@DavidSerranoIO I have a question, I take freelancing projects that are not huge and most of them have firebase as backends. and I have two questions please answer them. Should I implement CLEAN Architecture in small freelance projects that use Firebase as the backend? Can I use CLEAN Architecture with GetX ?
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
@@Inandoutpk In my opinion, yes, you should always apply clean architecture. As for GetX, I suppose you can apply clean, but I strongly advise against using this library, since what it does is an over-engineering of Flutter itself, from my point of view it makes no sense and does not provide anything of value.
@Inandoutpk
@Inandoutpk Жыл бұрын
@@DavidSerranoIO Thanks for your suggestion, I think now I should move toward riverpods.
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
@@Inandoutpk Good choice 👍
@nevilleraheemdavis5568
@nevilleraheemdavis5568 10 ай бұрын
Underrated video 🎉🎉🎉
@DavidSerranoIO
@DavidSerranoIO 10 ай бұрын
Thx!!
@theflutterboi
@theflutterboi Жыл бұрын
Amazingly explained. Please make more videos like this.
@satishsharma1298
@satishsharma1298 Жыл бұрын
This tutorial is so useful I am a new learner and thanks to you for this. Great content.
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
I'm glad you found it useful, thanks for your kind words!
@eincandela
@eincandela Жыл бұрын
Very concise and instructive video
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
Thanks!
@seamensclubaihub
@seamensclubaihub Жыл бұрын
huge thanks!!
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
You're welcome!!
@ayesigasteven8058
@ayesigasteven8058 Жыл бұрын
Thank you
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
You're welcome!
@benjieming7232
@benjieming7232 Жыл бұрын
Retrofit over custom ApiClient
@nevilleraheemdavis5568
@nevilleraheemdavis5568 11 ай бұрын
Followed up to the point where you passed the 'providers' parameter to App().. this is making my widget_test.dart fail since i can't access the given parameter in that widget_test.dart file, any suggestions?
@DavidSerranoIO
@DavidSerranoIO 11 ай бұрын
You can send a list of providers prepared for your test, what specific error are you having?
@hurbangash1302
@hurbangash1302 9 ай бұрын
siriam using riverpod and i have heard that riverpod is anti architecture need help how can i use clean archetecture for riverpod
@Anilkumar-ec8sj
@Anilkumar-ec8sj Жыл бұрын
why you didn't go for hive and used SQLite?
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
Because SQLite is a suitable tool for this task. Why should I have used Hive instead in your opinion?
@UsamaKarim
@UsamaKarim 5 ай бұрын
The answer night be suitable in current circumstances. 1. Hive support has been dropped and its being updated anymore. 2. Sqlite has been battle tested in many circumstances and different platforms. Its being longterm supported and also supported many use cases needed till date.
@debajyotisaha14
@debajyotisaha14 Жыл бұрын
After running the application, my application shows blank screen. The Data is logging in my console. but after that it becomes null. Any solution?
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
Could you provide the complete log output?
@usama_khalid
@usama_khalid Жыл бұрын
👍
@nekorielfredbear1455
@nekorielfredbear1455 Жыл бұрын
hello you said to me: You're welcome, if you want, when I launch the video, remind me in a comment and I'll explain exactly what you would have to do to incorporate Firestore. so if you want to explain it to me that would be adorable thank you !!!
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
Of course, basically you have to follow the same methodology that I follow in this video but adjusting the datasource to Firestore, that is: - First create an entity that represents the data in Firestore, for example lib/data/firestore/entity/your_entity.dart. Here you can use json_serializable exactly like I do with the network layer models. - Then you'll need a mapper to convert that entity to your domain objects, which can be in lib/data/firestore/firestore_mapper.dart. The methodology to follow is exactly the same as the Mapper classes that I show in this example. - You will have to create the datasource that interacts with Firestore, in /lib/data/firestore/client/firestore_client.dart. This class uses the SDK that Firestore provides to work with its data. - Finally you will have to use all of the above in your repository, where you will use FirestoreClient to get the entities, and FirestoreMapper to map them to your domain objects. This is roughly the guide by which you could guide yourself to be able to implement your synchronization layer with Firestore, if you have any specific questions do not hesitate to ask.
@nekorielfredbear1455
@nekorielfredbear1455 Жыл бұрын
@@DavidSerranoIO Hello, I'm coming back to you because I'm stuck, indeed, I can't find the api host for cloud firestore, as for my api key, I retrieved my web api key from the parameters of my firebase project, hoping that this is it
@DavidSerranoIO
@DavidSerranoIO Жыл бұрын
@@nekorielfredbear1455 To communicate with Firestore you have to use the library and the methodology that Firebase requires. I recommend that you first learn to read and write in Firebase by following the official tutorials offered by Google. Once you've learned that, you can apply that knowledge to building a FirestoreClient to perform the communication.
@nekorielfredbear1455
@nekorielfredbear1455 Жыл бұрын
@@DavidSerranoIO thank you
@ilyasanders4169
@ilyasanders4169 Жыл бұрын
Flutter Clean Architecture - Full Course
1:14:08
Flutter Mapp
Рет қаралды 87 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Flutter tutorial - Build an Uber clone with Flutter and Supabase
1:49:46
Use RAG to chat with PDFs using Deepseek, Langchain and Streamlit
23:05
Repository Pattern
11:08
Coding Concepts
Рет қаралды 69 М.
Clean Architecture in Flutter - All You Need to Know!
3:57
Flutter Guys
Рет қаралды 45 М.
Flutter Clean Architecture Visual Explanation
6:15
Flutter Mapp
Рет қаралды 34 М.
Every Minute One Person Is Eliminated
34:46
MrBeast
Рет қаралды 53 МЛН
Pragmatic State Management in Flutter (Google I/O'19)
33:25
Flutter
Рет қаралды 457 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН