No video

#2 - BLoC Core Concepts - Streams, Blocs, Cubits | BLoC - from Zero to Hero

  Рет қаралды 76,473

Flutterly

Flutterly

Күн бұрын

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 KZbin Member, donate or buy my courses on Udemy, using the following links:
Become an Official KZbin 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

Пікірлер: 121
@Flutterly
@Flutterly 3 жыл бұрын
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 -> kzbin.info/www/bejne/inmmnJ6HYrtkY5o
@user-jg2kz8vv6o
@user-jg2kz8vv6o 4 жыл бұрын
The best of the best!!! Hours of courses were beaten by 14 minutes video! Great! Thank you!
@Flutterly
@Flutterly 4 жыл бұрын
That's the best compliment my video could ever receive, I'm really glad it helped you!
@dilshan3372
@dilshan3372 3 жыл бұрын
--------------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.
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much! ✨ Let me pin this message
@stephenchoo8990
@stephenchoo8990 Ай бұрын
You are litterally the bset. The best lecture ever about BLoc.
@tevinmorake8924
@tevinmorake8924 3 жыл бұрын
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
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much, glad you like my content!
@milleradulu
@milleradulu 3 жыл бұрын
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.
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much, man, I really appreciate it! ♥
@puspharajselvaraj8852
@puspharajselvaraj8852 3 жыл бұрын
Bloc vs Cubit nicely explained in very details.
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much!
@raul286162
@raul286162 3 жыл бұрын
Man you really go yo the main point the most complete explanation I had seen very straighforward and fast.
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much for your feedback!
@amitmondal7427
@amitmondal7427 Жыл бұрын
This explanation about stream is super easy to understand. Thank you.
@rounaktadvi4950
@rounaktadvi4950 3 жыл бұрын
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😂
@Flutterly
@Flutterly 3 жыл бұрын
😂 😂 😂 Haha, I appreciate it!
@KenWhipday
@KenWhipday 4 жыл бұрын
Best explanation I've seen of bloc - and I've been watching lots of videos :-)
@Flutterly
@Flutterly 4 жыл бұрын
Thank you so much! Stay tuned, there are more to come!
@ysapaa9173
@ysapaa9173 3 жыл бұрын
Amazing explanation, really. Can't wait to see full series. Thanks man!
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much, man! ✨ Looking forward to providing more material
@OCTsecond
@OCTsecond 3 жыл бұрын
Thank a lot for your videos, very clear explanation and good visual context !
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much!
@rno2054
@rno2054 Жыл бұрын
Thank you , you just answered my problem that i have over a weak .. now i can solve my code
@akashdalvi9000
@akashdalvi9000 3 жыл бұрын
The effort you put in is just incredible. Hats off mate
@Flutterly
@Flutterly 3 жыл бұрын
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!
@user-lz5wf1sn3e
@user-lz5wf1sn3e 3 жыл бұрын
You have a talent. Hope you will be on top of all flutter videos
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much! ✨ Hopefully I will
@nativeworld0
@nativeworld0 6 ай бұрын
watching on 2020 you are best teacher clear to the point hats off master!!
@jesuscortes6162
@jesuscortes6162 11 ай бұрын
Finally got the concept after watching this video! Thank you !
@sibulelemboyi526
@sibulelemboyi526 3 жыл бұрын
No man, you tutorials are amazing ❤
@joseubaldocarvajal6472
@joseubaldocarvajal6472 3 жыл бұрын
Absolutely amazing. A new subscriber here. I would definitely buy your courses. What an awesome way to teach and clarity concepts!. Thanks a lot.
@Flutterly
@Flutterly 3 жыл бұрын
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
@loop8836
@loop8836 3 жыл бұрын
best video, best way of explaining, best use of animation. wish you 100k quickly
@Flutterly
@Flutterly 3 жыл бұрын
Thank you, brother, God bless u!
@leelaitw
@leelaitw 3 жыл бұрын
12:54, clear explanation, Thank you.
@Flutterly
@Flutterly 3 жыл бұрын
You're welcome!
@tridarid
@tridarid 3 жыл бұрын
Easy to understand. Thumbs up for you.
@Flutterly
@Flutterly 3 жыл бұрын
Glad I could help, thanks!
@spalsh1221
@spalsh1221 3 жыл бұрын
Really nice work. One of the best explanation on this subject. Thank you ! 😁
@TechWithDnes
@TechWithDnes 3 жыл бұрын
You are the best. What an explanation
@Flutterly
@Flutterly 3 жыл бұрын
Lots of love, homie! ♥ Glad I could help!
@soumyaranjanmishra1357
@soumyaranjanmishra1357 Жыл бұрын
You are best tutor man
@kanyshaiosmonova2008
@kanyshaiosmonova2008 Жыл бұрын
thank you! Now I really understand it
@bizarrecentral6032
@bizarrecentral6032 5 ай бұрын
Really great video. Thank you 🙏
@ribeshbasnet2718
@ribeshbasnet2718 3 жыл бұрын
This is what I needed Thank you sir.
@Flutterly
@Flutterly 3 жыл бұрын
You are welcome! Glad I could help!
@alexlibak
@alexlibak 3 жыл бұрын
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?
@Flutterly
@Flutterly 3 жыл бұрын
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.
@Shakl-e
@Shakl-e 3 жыл бұрын
@@Flutterly Do they suggest provider with change notifiers? What it the architecture in that case? UI - Provider - Repository - Data client?
@xbriannx
@xbriannx 3 жыл бұрын
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?)
@Flutterly
@Flutterly 3 жыл бұрын
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. 👍
@user-dj2vx6nb5h
@user-dj2vx6nb5h 2 жыл бұрын
Thank you so much. Your teaching method is really great 🔥😍
@abbosbobomurodov5011
@abbosbobomurodov5011 3 жыл бұрын
Thanks bro from Central Asia
@Flutterly
@Flutterly 3 жыл бұрын
You're welcome, bro!
@khaledElsa3dny
@khaledElsa3dny Жыл бұрын
your explanation impressed me ! Thanks alot ❤
@andreaaschei6000
@andreaaschei6000 3 жыл бұрын
Wow, really good, thank you!
@leanghenglim
@leanghenglim 2 жыл бұрын
Loving the visualisation, keep it up
@user-er9zk4sr9r
@user-er9zk4sr9r Ай бұрын
Lol ooi
@himanshudhakecha1789
@himanshudhakecha1789 2 жыл бұрын
very helpful to understand the concept
@hamada_emam
@hamada_emam 2 жыл бұрын
جامد يا جدعان
@nick0c
@nick0c 3 жыл бұрын
Thanks very much for this!
@Flutterly
@Flutterly 3 жыл бұрын
You're welcome!
@BigDoubleJoe
@BigDoubleJoe 3 жыл бұрын
very good explanation
@Flutterly
@Flutterly 3 жыл бұрын
Thank you!
@earthrelated
@earthrelated 2 жыл бұрын
Excellent!Keep going bro!
@jose99Av
@jose99Av 3 жыл бұрын
thank you, your videos are so helpful
@iotmindsecommerce9171
@iotmindsecommerce9171 3 жыл бұрын
Thanks for the great tutorial on flutter bloc. Will you please create a video on Bloc transformEvents.
@emil.mammadov
@emil.mammadov 3 жыл бұрын
You rock broo. Thanks for all explanation!!
@fidamuntaseer1989
@fidamuntaseer1989 4 жыл бұрын
Good explanation!
@Flutterly
@Flutterly 4 жыл бұрын
Glad it was helpful!
@WimpyWarlord
@WimpyWarlord Жыл бұрын
What a fucking legend.
@tomaszsawicki3206
@tomaszsawicki3206 3 жыл бұрын
Wow nice work done here sir. Kudos :D.
@Flutterly
@Flutterly 3 жыл бұрын
Thank you so much! ✨
@joseinTokyo
@joseinTokyo Жыл бұрын
brilliant!!!
@humayunkabir54347
@humayunkabir54347 Жыл бұрын
i see your video in udemy ...i have a question sir..your video is 3 years ago.. have any change right now in bloc??
@dayworkhard
@dayworkhard 2 жыл бұрын
Best!
@vipulkumar8261
@vipulkumar8261 2 жыл бұрын
I'm not getting the same output for code discussed at 4:10 the boat problem
@kawsarmoqadsa5990
@kawsarmoqadsa5990 11 ай бұрын
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.
@petromoskal787
@petromoskal787 3 жыл бұрын
Hi! I'm getting distracted at 6th minute) what is the animated widget for the counter button?
@muhammadyaumil1212
@muhammadyaumil1212 4 ай бұрын
does yield same as return in Stream func ?
@siyabongamashilwane7432
@siyabongamashilwane7432 3 жыл бұрын
i love you bro thanks man ur the best.
@josephjoey3904
@josephjoey3904 3 жыл бұрын
Please help me. I'm stuck on login system with rest API and register isn't working. Can you make a video? Thanks 😊👍
@poyrazaktas6374
@poyrazaktas6374 3 жыл бұрын
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?
@Flutterly
@Flutterly 3 жыл бұрын
This is just the foundation of streams mate, the receiver is just waiting at the end of the pipe for new piece of information
@Shakl-e
@Shakl-e 3 жыл бұрын
It does not know and will be waiting until you close the stream
@khairulanas
@khairulanas 3 жыл бұрын
you are awesome .... >.
@Flutterly
@Flutterly 3 жыл бұрын
Thank you, man!
@dirverslicense
@dirverslicense 3 жыл бұрын
The three people that disliked this video , have youtube channels that tried to teach this concept and failed.
@Flutterly
@Flutterly 3 жыл бұрын
Haha, let them go, man, I would appreciate if they would provide a feedback too, rather than just hitting the dislike button. 😂
@keithbacalso9433
@keithbacalso9433 3 жыл бұрын
Hi Flutterly, do you also cover RxDart in BLoC?
@Flutterly
@Flutterly 3 жыл бұрын
I will cover RxDart in my Dart series, soon enough!
@Bathusaix
@Bathusaix 3 жыл бұрын
this video does not have subtitles?
@imankamali5799
@imankamali5799 3 жыл бұрын
Some details are not covered (for beginners) But overall it is great
@Flutterly
@Flutterly 3 жыл бұрын
Thank you for the feedback!
@kuldeepgupta2536
@kuldeepgupta2536 3 жыл бұрын
please make full flutter course
@imran809
@imran809 Жыл бұрын
You should slow down when you are modifying previous code. This helps focusing on what is changing. Otherwise, type it from the beginning please.
@quicksketch1617
@quicksketch1617 3 жыл бұрын
Where is coming from this print? final streamSubscription = cubit.listen( print);
@SamiUllah-tw6rq
@SamiUllah-tw6rq 3 жыл бұрын
really good explanation ! i've started watching your playlist is it complete ?
@Flutterly
@Flutterly 3 жыл бұрын
I still have 2 videos to go, Mate.
@quicksketch1617
@quicksketch1617 3 жыл бұрын
Need to import dart async to use stream?
@Flutterly
@Flutterly 3 жыл бұрын
Yes
@PGd_108
@PGd_108 Жыл бұрын
sorry subtitles are disabled
@sribagy
@sribagy 3 жыл бұрын
What editor are you using to type the code, looks like a local version of dartpad?
@0x3C
@0x3C 3 жыл бұрын
Looks like VS Code
@Flutterly
@Flutterly 3 жыл бұрын
Yup, it's vscode
@robovirtuoso1354
@robovirtuoso1354 3 жыл бұрын
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.
@Nicosfrs
@Nicosfrs Жыл бұрын
As a not native english speaker, not having subtitles hurt my soul :(
@imankamali5799
@imankamali5799 3 жыл бұрын
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 ?!😅
@jovanemullings
@jovanemullings 3 жыл бұрын
what is the difference between yield and return ?
@Flutterly
@Flutterly 3 жыл бұрын
Yield is used to send a value down an asynchronous stream of data. Return is used to return a value immediately from somewhere.
@jkoteswararao007
@jkoteswararao007 3 жыл бұрын
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 .
@shaaficialli4284
@shaaficialli4284 3 жыл бұрын
please make a lot of tutorial in bloc
@kulveersinghdhanoa
@kulveersinghdhanoa 3 жыл бұрын
What software did you use to make the diagrams?
@Flutterly
@Flutterly 3 жыл бұрын
Videoscribe
@kulveersinghdhanoa
@kulveersinghdhanoa 3 жыл бұрын
@@Flutterly -Thanks - looks like a great tool.
@rabbyglaigboussagamouana3785
@rabbyglaigboussagamouana3785 Жыл бұрын
Please, can you add subtitles
@Rick-ng3lr
@Rick-ng3lr 2 жыл бұрын
Lol, literally a stream/river. 🤭👍🏻
@Minhle-bg1rp
@Minhle-bg1rp 3 жыл бұрын
Please enable auto sub in this video. Im listening very bad. Thanks you for sharing courses.
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 51 МЛН
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 5 МЛН
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 43 МЛН
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 45 МЛН
Flutter State Management - The Grand Tour
14:07
Fireship
Рет қаралды 240 М.
Build 5 Apps in 5 Minutes with Flutter… But should you?
8:53
i'm so tired of talking about this..
10:00
Low Level Learning
Рет қаралды 29 М.
These Coding Projects Give You An Unfair Advantage
14:39
Harkirat Singh
Рет қаралды 347 М.
#1 - Why BLoC? | BLoC - from Zero to Hero
5:25
Flutterly
Рет қаралды 60 М.
Bloc Library: Basics & Beyond - Felix Angelov | Flutter Europe
46:16
Flutter Europe
Рет қаралды 58 М.
The World's Tallest Pythagoras Cup-Does It Still Drain?
10:05
The Action Lab
Рет қаралды 287 М.
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 51 МЛН