Ep.1 - Factory Method Pattern | Flutter Design Patterns
This is the first episode of Design Patterns Series in Flutter, designed for beginners. In this episode, we are going to understand what Factory Method Pattern is. We will go through an overly complicated definition, understand it using analogy, take dart and flutter examples and then understand when and why to use this design pattern along with the disadvantages it brings.
There are 3 type of Factory Patterns:
1. Simple Factory (Not considered a Design Pattern)
2. Factory Method (This video)
3. Abstract Factory (Ep. 2)
Discord Server: / discord
📌 Code - github.com/RivaanRanawat/flut...
📕 Design Patterns Book - www.amazon.in/Design-Patterns...
Timestamps:
(00:00) Introduction
(00:19) What is Factory Method Pattern
(00:40) Factory Method Pattern Analogy
(02:15) Creational Design Pattern
(02:51) Dart Code Example (Factory Method Pattern)
(13:32) Advantages & Uses of Factory Method Pattern
(17:16) Flutter Example (Factory Method Pattern)
(23:24) Disadvantages of Factory Method Pattern
(24:01) Design Patterns related to Factory Method Pattern
(24:28) Conclusion
Connect With Me Here:
Twitter: / ranawatrivaan
Linkedin: / rivaan-ranawat
GitHub: github.com/rivaanranawat
Instagram: / optimalcoding
Facebook: / rivaan.ranawat
Mail: namanrivaan@gmail.com
Medium: / namanrivaan
#flutter #dart
Пікірлер: 84
Introduction Video - kzread.info/dash/bejne/pZ9pqrmzlrHKodY.html Discord Server -discord.gg/Q8Rx8YWFVF Source Code - github.com/RivaanRanawat/flutter-design-patterns/tree/main/Factory%20Method Playlist - kzread.info/head/PLlzmAWV2yTgB-1LdoO-9vCTgrE-1dyWKP
Thanks, Bro, for your hard work! Your style teaching helped me to understand main concept of coding! And thank to you I have got the my first job as a Junior Flutter Developer. I work with one project from beginning and this video helps me to make my job correct!
@RivaanRanawat
Жыл бұрын
That's awesome news! Congratulations 🎉👏
dude this was a *great* video. I love your explanations. I will look forward to the continuation of this *_series_* .
@RivaanRanawat
Жыл бұрын
Thank you! New Vid today!
Thank you for doing this video. Continue this series you are highly appreciated.
@RivaanRanawat
Жыл бұрын
Thank you, I will! 22 more vids👀
Your dedication to your craft as a coder is truly inspiring. Thank you very much!!!
@RivaanRanawat
Жыл бұрын
Thanks a ton Everly Grefaldeo!!
A.M.A.Z.I.N.G💥 Well put examples and fabulous clarity in your voice as well. Stunned to know that you are a 18yo. Hats off. Keep publishing. Looking forward to the whole series.
Learned a lot! Thank you Rivaan.
@RivaanRanawat
Жыл бұрын
Glad to know you could follow along!
Love it, thanks bro. Please contiunes this series.
@RivaanRanawat
Жыл бұрын
More to come!
Thanks, Bro. These videos are helpful for me.
Completely helpful, thanks for sharing, keep going.
@RivaanRanawat
Жыл бұрын
Happy it was helpful! More to Come!
Rivaan bro you are great. Please continue this series till the end.
@RivaanRanawat
Жыл бұрын
Thanks, will do! 22 more vids before it gets done😉
Thank You Soo Much Rivaan
@RivaanRanawat
Жыл бұрын
Most Welcome!
Waiting for next episode 😍
@RivaanRanawat
Жыл бұрын
Will be releasing in a couple of days😉 (def less than a week)
Thanks for this amazing tutorial.
@RivaanRanawat
Жыл бұрын
Glad it was helpful!
Thanks for this great video!
@RivaanRanawat
Жыл бұрын
My pleasure!
it's great this kind of videos, thanks, keep it up....
@RivaanRanawat
Жыл бұрын
Thanks, will do!
Loved it!
@RivaanRanawat
Жыл бұрын
Glad you liked it Zaidraza!!
super amazing tutorial .. please upload more design patterns
@RivaanRanawat
Жыл бұрын
Coming soon! Hope to complete the series by Jan end.
Before watching thank you bro for this video , waiting for more !
@RivaanRanawat
Жыл бұрын
More coming soon!
Continue please... learneded a lot
@RivaanRanawat
Жыл бұрын
Absolutely! 22 more vids👀
Veryyy gooood!! 👌👌👍
@RivaanRanawat
Жыл бұрын
Thanks!!
Ağzına sağlık kardeşim, harika anlatıyorsun
@RivaanRanawat
Жыл бұрын
Thanks a ton!
Good job!
@RivaanRanawat
Жыл бұрын
Thanks!
let's go man💸💸
@RivaanRanawat
Жыл бұрын
Thanks!
super explaination
@RivaanRanawat
3 ай бұрын
Glad you liked it!
nice!
Hey Man After Watching this i am just Simply Understood what is factory methods .. Thanks Buddy
@RivaanRanawat
Жыл бұрын
Glad you could understand!
Hi here both the button s are stateful widget , so implementing factory class helps in overriding the build method and worked perfectly. Now suppose we have a Satateful widget , in tha case which class will implement the Factory class? Can you show the factory pattern for a stateful widget?
But at 10:55 you instantiated abstract class in main method which violates the rule. please explain about that
Nice video.
@aradhyajain9575
Жыл бұрын
Well explained. Would love to learn more from you.
@RivaanRanawat
Жыл бұрын
Thanks Aradhya!
@aradhyajain9575
Жыл бұрын
@@RivaanRanawat brother u r doing very good work. I have a request for you to please, drop a video explaining Streams.
@RivaanRanawat
Жыл бұрын
@@aradhyajain9575 Noted!
Thank you so much, I really appreciated. I was using it but never understand perfectly! Little suggestion, add generic example ()
@RivaanRanawat
Жыл бұрын
Most Welcome! Can you please elaborate more on generic example part? Like what exactly can I put in?
@fardoche6
Жыл бұрын
maybe List generic will have better use on abstract factory than factory pattern
What a genius
@RivaanRanawat
Жыл бұрын
Thanks Regína!
❤️
Finally
@RivaanRanawat
Жыл бұрын
Other episodes won't take this much time.
hey rivaan just wanted to know , from where have you learned the flutter?
@RivaanRanawat
Жыл бұрын
Started learning Flutter 3 years ago from Udemy (Academind's course). Since then, documentation, blogs and videos have helped me to keep myself updated.
hi rivaan, After this wonderful series please build udemy clone with nodejs and flutter mongodb with chattting with teacher and other stuff
@RivaanRanawat
Жыл бұрын
Noted! Thanks for the request!
Rivaan bro please make video about server driven UI.
@RivaanRanawat
Жыл бұрын
Great suggestion! Thank you!
@somnathdas8922
Жыл бұрын
@@RivaanRanawat I should tell you to thank you .. because lately, you are providing such a highly valuable more complex coding tutorial through this channel.
Please make a video Full project with clean architecture....
@RivaanRanawat
Жыл бұрын
Next Project video will follow Clean Architecture!
@souemon7386
Жыл бұрын
@@RivaanRanawat don’t forget to add testing feature also... Thanks in advance hero⚡
Yrr till when playlist will be completed?
@RivaanRanawat
Жыл бұрын
I hope to complete it by Jan end.
I m not working on my project for last 2 months. Whenever i try to sit down and work on it, i feel highly demotivated. Any trick to overcome this?
@RivaanRanawat
Жыл бұрын
What exactly do you feel when you start coding? Why is it that you feel demotivated when you code?
Hi Rivaan! How do you learn?
@RivaanRanawat
Жыл бұрын
As in?
@AbdulHannan-or8ql
Жыл бұрын
@@RivaanRanawat Coding
Brother error bhaut aate h how solve or bhaut dimag kharab hota h what a roadmap to be advance in flutter
@RivaanRanawat
Жыл бұрын
Will try to make a video on it! Thanks for the request