ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
#2 - BLoC Core Concepts - Streams, Blocs, Cubits | BLoC - from Zero to Hero
ฝัง
- เผยแพร่เมื่อ 27 ส.ค. 2020
- Hi there! Today we'll take a look at the most important concepts of BLoC = Streams, Blocs and Cubits.
The project files can be found on my GitHub Repository here: github.com/The...
All animations were done in VideoScribe, you can try it by clicking my affiliate link --- www.awin1.com/...
You can contact me directly here:
Join my Discord Server --- / discord
Twitter --- / letsgetwckd
Instagram --- / letsgetwckd
Also, if you want to support me furthermore you can become an TH-cam Member, donate or buy my courses on Udemy, using the following links:
Become an Official TH-cam Member! ---- / flutterly
Buy my Udemy Courses! ---- www.udemy.com/...
Support me on Revolut! ---- revolut.me/let...
Buy me a Ko-fi! --- ko-fi.com/wckdyt
Donate me on Paypal! --- www.paypal.me/...
Support me on Patreon! --- / wckdyt
Hello, everyone!
The entire course is now live on Udemy too, get it while it's hot --> www.udemy.com/course/bloc-from-zero-to-hero/?referralCode=E689592633984B34DBEF
Also I have just managed to finally finish the entire BLoC - From Zero to Hero Complete Course, based on this tutorial series. You can check it out here -> th-cam.com/video/THCkkQ-V1-8/w-d-xo.html
--------------BLoC core concepts-----------------
0:37 - 4:22 - Introduction to Streams.
4:22 - 4:51 - Why BLoC needs Streams.
5:11 - 10:30 - What is BLoC and Cubit , And what's the difference between them.
10:30 - 14:00 - Which should I use ,BLoC or Cubit ?
Topics that I learned from this video.
Thank you so much for your explanation.
Thank you so much! ✨ Let me pin this message
The best of the best!!! Hours of courses were beaten by 14 minutes video! Great! Thank you!
That's the best compliment my video could ever receive, I'm really glad it helped you!
You are litterally the bset. The best lecture ever about BLoc.
Definitely Subbed! After a couple of courses, medium articles, stackoverflows, and brain-cracking, I can finally picture application-wide state thanks to this explanation of bloc and cubit! Thank you
Thank you so much, glad you like my content!
Thanks @Flutterly for such an elaborate discussion on the basic concepts. For a long time I didn't really understand the events, mape event to state e.t.c, and now I feel like, "How did I not know this!!". Good good stuff.
Thank you so much, man, I really appreciate it! ♥
This explanation about stream is super easy to understand. Thank you.
Bloc vs Cubit nicely explained in very details.
Thank you so much!
Man you really go yo the main point the most complete explanation I had seen very straighforward and fast.
Thank you so much for your feedback!
I wasn't able to understand cubit, thanks to you now I know what it actually is and when to use it btw great example of that bulldozer and shovel😂
😂 😂 😂 Haha, I appreciate it!
watching on 2020 you are best teacher clear to the point hats off master!!
Best explanation I've seen of bloc - and I've been watching lots of videos :-)
Thank you so much! Stay tuned, there are more to come!
The effort you put in is just incredible. Hats off mate
Thank you so much, mate! 🌟 Indeed, it takes a lot of time and it's a little bit of a learning curve, but I hope I can become better by every tutorial. Thank you again!
Thank a lot for your videos, very clear explanation and good visual context !
Thank you so much!
best video, best way of explaining, best use of animation. wish you 100k quickly
Thank you, brother, God bless u!
Amazing explanation, really. Can't wait to see full series. Thanks man!
Thank you so much, man! ✨ Looking forward to providing more material
Absolutely amazing. A new subscriber here. I would definitely buy your courses. What an awesome way to teach and clarity concepts!. Thanks a lot.
Thank you so much, fortunately, all my courses will be free so that everyone will be able to access them! 🌟 Anyone who wants to support can donate to me either way, don't need to charge them for the content
Thank you , you just answered my problem that i have over a weak .. now i can solve my code
12:54, clear explanation, Thank you.
You're welcome!
You have a talent. Hope you will be on top of all flutter videos
Thank you so much! ✨ Hopefully I will
Finally got the concept after watching this video! Thank you !
Easy to understand. Thumbs up for you.
Glad I could help, thanks!
No man, you tutorials are amazing ❤
Really nice work. One of the best explanation on this subject. Thank you ! 😁
Best explanation ever for blocs and cubits! I think official flutter team should add your video to their page of explanation. Did you thought about writing post about Blocs on medium.com?
Thank you so much! Flutter team doesn't really like the bloc pattern so I don't see a reason why they should add my videos to their page of explanation haha. No, I only plan on uploading videos here, and leave them as explanatory as possible. I don't have time to upload and write articles on more platforms.
@@Flutterly Do they suggest provider with change notifiers? What it the architecture in that case? UI - Provider - Repository - Data client?
You are best tutor man
You are the best.
What an explanation
Lots of love, homie! ♥ Glad I could help!
Absolutely the best explanation of all Bloc tutorials on the internet!
P.S.: If I understand well the lesson, StatefulWidgets are obsolete when using Bloc even for the simplest use cases. Is my understanding correct?)
No, it's not like that. Stateful widgets are useful for other stuff like animations, disposing manually created blocs, work with native code and many more. You'll see what I mean while you'll advance deep into the tutorials. 👍
Really great video. Thank you 🙏
Thanks bro from Central Asia
You're welcome, bro!
Thank you so much. Your teaching method is really great 🔥😍
your explanation impressed me ! Thanks alot ❤
thank you! Now I really understand it
This is what I needed
Thank you sir.
You are welcome! Glad I could help!
very helpful to understand the concept
very good explanation
Thank you!
Hello, great video but i had a little problem. bloc.listen(print); the listen method is not found error is given for both cubit example and bloc example. please, help.
Thanks for the great tutorial on flutter bloc. Will you please create a video on Bloc transformEvents.
i see your video in udemy ...i have a question sir..your video is 3 years ago.. have any change right now in bloc??
جامد يا جدعان
Loving the visualisation, keep it up
Lol ooi
Thanks very much for this!
You're welcome!
Please help me. I'm stuck on login system with rest API and register isn't working. Can you make a video? Thanks 😊👍
Wow, really good, thank you!
Wow nice work done here sir. Kudos :D.
Thank you so much! ✨
Hi! I'm getting distracted at 6th minute) what is the animated widget for the counter button?
You rock broo. Thanks for all explanation!!
Good explanation!
Glad it was helpful!
I'm not getting the same output for code discussed at 4:10 the boat problem
It was a great explanation. In 4:12 you've mentioned that the receiver listens to data. But I didn't understand how the receiver knows that the sender sent its all data. Can you help me out, please?
This is just the foundation of streams mate, the receiver is just waiting at the end of the pipe for new piece of information
It does not know and will be waiting until you close the stream
thank you, your videos are so helpful
Excellent!Keep going bro!
does yield same as return in Stream func ?
What a fucking legend.
Hi Flutterly, do you also cover RxDart in BLoC?
I will cover RxDart in my Dart series, soon enough!
Instead of "why is there a Cubit", personally my question is "why is there BLoC, isn't Cubit enough?" Seriously, what can BLoC do that Cubit can't, apart from the added complexity of event stream? I mean, functions can also be debounced/throttled like a stream.
brilliant!!!
Best!
really good explanation !
i've started watching your playlist is it complete ?
I still have 2 videos to go, Mate.
Where is coming from this print?
final streamSubscription = cubit.listen(
print);
Some details are not covered (for beginners)
But overall it is great
Thank you for the feedback!
You should slow down when you are modifying previous code. This helps focusing on what is changing. Otherwise, type it from the beginning please.
please make full flutter course
Need to import dart async to use stream?
Yes
The three people that disliked this video , have youtube channels that tried to teach this concept and failed.
Haha, let them go, man, I would appreciate if they would provide a feedback too, rather than just hitting the dislike button. 😂
What editor are you using to type the code, looks like a local version of dartpad?
Looks like VS Code
Yup, it's vscode
you are awesome .... >.
Thank you, man!
i love you bro thanks man ur the best.
this video does not have subtitles?
what is the difference between yield and return ?
Yield is used to send a value down an asynchronous stream of data. Return is used to return a value immediately from somewhere.
Once return is used, it gets closed. But in yield it not only sends the data to the caller, but also waits to send more data as it is supposed to receive later, (example stream). Use return when you want to send the data to caller and you will no longer need to send more data later. But yield it not only sends data immediately , but also sends the data in later(ex:future). caller can get data continously without calling each time .
As a not native english speaker, not having subtitles hurt my soul :(
please make a lot of tutorial in bloc
Is everyone like me and does not understand that in the end it is better to use a bloc or qubit to update and delete the customer ?!😑🙄
Or is my IQ too low ?!😅
sorry subtitles are disabled
What software did you use to make the diagrams?
Videoscribe
@@Flutterly -Thanks - looks like a great tool.
Please, can you add subtitles
Please enable auto sub in this video. Im listening very bad. Thanks you for sharing courses.
Lol, literally a stream/river. 🤭👍🏻