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

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 119

  • @Flutterly
    @Flutterly  4 года назад +2

    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 -> ruclips.net/video/THCkkQ-V1-8/видео.html

  • @dilshan3372
    @dilshan3372 4 года назад +7

    --------------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  4 года назад +1

      Thank you so much! ✨ Let me pin this message

  • @TimurSrvarov
    @TimurSrvarov 4 года назад +41

    The best of the best!!! Hours of courses were beaten by 14 minutes video! Great! Thank you!

    • @Flutterly
      @Flutterly  4 года назад +1

      That's the best compliment my video could ever receive, I'm really glad it helped you!

  • @tevinmorake8924
    @tevinmorake8924 4 года назад +4

    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  4 года назад

      Thank you so much, glad you like my content!

  • @milleradulu
    @milleradulu 4 года назад +2

    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  4 года назад

      Thank you so much, man, I really appreciate it! ♥

  • @stephenchoo8990
    @stephenchoo8990 6 месяцев назад

    You are litterally the bset. The best lecture ever about BLoc.

  • @raul286162
    @raul286162 4 года назад +1

    Man you really go yo the main point the most complete explanation I had seen very straighforward and fast.

    • @Flutterly
      @Flutterly  4 года назад +1

      Thank you so much for your feedback!

  • @puspharajselvaraj8852
    @puspharajselvaraj8852 4 года назад +2

    Bloc vs Cubit nicely explained in very details.

  • @amitmondal7427
    @amitmondal7427 Год назад

    This explanation about stream is super easy to understand. Thank you.

  • @KenWhipday
    @KenWhipday 4 года назад +2

    Best explanation I've seen of bloc - and I've been watching lots of videos :-)

    • @Flutterly
      @Flutterly  4 года назад +1

      Thank you so much! Stay tuned, there are more to come!

  • @loop8836
    @loop8836 3 года назад +1

    best video, best way of explaining, best use of animation. wish you 100k quickly

    • @Flutterly
      @Flutterly  3 года назад

      Thank you, brother, God bless u!

  • @ysapaa9173
    @ysapaa9173 4 года назад +1

    Amazing explanation, really. Can't wait to see full series. Thanks man!

    • @Flutterly
      @Flutterly  4 года назад +1

      Thank you so much, man! ✨ Looking forward to providing more material

  • @nativeworld0
    @nativeworld0 11 месяцев назад

    watching on 2020 you are best teacher clear to the point hats off master!!

  • @jesuscortes6162
    @jesuscortes6162 Год назад

    Finally got the concept after watching this video! Thank you !

  • @akashdalvi9000
    @akashdalvi9000 4 года назад +1

    The effort you put in is just incredible. Hats off mate

    • @Flutterly
      @Flutterly  4 года назад

      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!

  • @rounaktadvi4950
    @rounaktadvi4950 4 года назад +2

    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  4 года назад

      😂 😂 😂 Haha, I appreciate it!

  • @joseubaldocarvajal6472
    @joseubaldocarvajal6472 4 года назад +1

    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  4 года назад +1

      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

  • @Jenny-s9x2f
    @Jenny-s9x2f 4 года назад +2

    You have a talent. Hope you will be on top of all flutter videos

    • @Flutterly
      @Flutterly  4 года назад +1

      Thank you so much! ✨ Hopefully I will

  • @james-freekp
    @james-freekp 3 года назад +1

    12:54, clear explanation, Thank you.

  • @OCTsecond
    @OCTsecond 4 года назад +2

    Thank a lot for your videos, very clear explanation and good visual context !

  • @tridarid
    @tridarid 3 года назад +1

    Easy to understand. Thumbs up for you.

    • @Flutterly
      @Flutterly  3 года назад

      Glad I could help, thanks!

  • @rno2054
    @rno2054 Год назад

    Thank you , you just answered my problem that i have over a weak .. now i can solve my code

  • @xbriannx
    @xbriannx 3 года назад +1

    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 года назад +2

      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. 👍

  • @abbosbobomurodov5011
    @abbosbobomurodov5011 4 года назад +1

    Thanks bro from Central Asia

    • @Flutterly
      @Flutterly  4 года назад +1

      You're welcome, bro!

  • @alexlibak
    @alexlibak 4 года назад +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  4 года назад +2

      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?

  • @spalsh1221
    @spalsh1221 4 года назад +1

    Really nice work. One of the best explanation on this subject. Thank you ! 😁

  • @mby_sbu
    @mby_sbu 3 года назад +3

    No man, you tutorials are amazing ❤

  • @himanshudhakecha1789
    @himanshudhakecha1789 2 года назад

    very helpful to understand the concept

  • @soumyaranjanmishra1357
    @soumyaranjanmishra1357 Год назад

    You are best tutor man

  • @TechWithDnes
    @TechWithDnes 4 года назад +2

    You are the best.
    What an explanation

    • @Flutterly
      @Flutterly  4 года назад +1

      Lots of love, homie! ♥ Glad I could help!

  • @leanghenglim
    @leanghenglim 3 года назад

    Loving the visualisation, keep it up

  • @phewphew07
    @phewphew07 4 года назад +1

    This is what I needed
    Thank you sir.

    • @Flutterly
      @Flutterly  4 года назад

      You are welcome! Glad I could help!

  • @khaledElsa3dny
    @khaledElsa3dny Год назад

    your explanation impressed me ! Thanks alot ❤

  • @bizarrecentral6032
    @bizarrecentral6032 10 месяцев назад

    Really great video. Thank you 🙏

  • @poyrazaktas6374
    @poyrazaktas6374 3 года назад +1

    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

  • @kanyshaiosmonova2008
    @kanyshaiosmonova2008 Год назад

    thank you! Now I really understand it

  • @МаксимАбрамов-е1я
    @МаксимАбрамов-е1я 2 года назад

    Thank you so much. Your teaching method is really great 🔥😍

  • @earthrelated
    @earthrelated 3 года назад

    Excellent!Keep going bro!

  • @tomaszsawicki3206
    @tomaszsawicki3206 4 года назад +1

    Wow nice work done here sir. Kudos :D.

    • @Flutterly
      @Flutterly  4 года назад

      Thank you so much! ✨

  • @emil.mammadov
    @emil.mammadov 3 года назад

    You rock broo. Thanks for all explanation!!

  • @hamada_emam
    @hamada_emam 2 года назад

    جامد يا جدعان

  • @andreaaschei6000
    @andreaaschei6000 4 года назад +1

    Wow, really good, thank you!

  • @nick0c
    @nick0c 4 года назад +1

    Thanks very much for this!

  • @vipulkumar8261
    @vipulkumar8261 2 года назад

    I'm not getting the same output for code discussed at 4:10 the boat problem

  • @iotmindsecommerce9171
    @iotmindsecommerce9171 4 года назад +1

    Thanks for the great tutorial on flutter bloc. Will you please create a video on Bloc transformEvents.

  • @jose99Av
    @jose99Av 4 года назад

    thank you, your videos are so helpful

  • @fidamuntaseer1989
    @fidamuntaseer1989 4 года назад +1

    Good explanation!

    • @Flutterly
      @Flutterly  4 года назад

      Glad it was helpful!

  • @humayunkabir54347
    @humayunkabir54347 Год назад +1

    i see your video in udemy ...i have a question sir..your video is 3 years ago.. have any change right now in bloc??

  • @petromoskal787
    @petromoskal787 3 года назад

    Hi! I'm getting distracted at 6th minute) what is the animated widget for the counter button?

  • @kawsarmoqadsa5990
    @kawsarmoqadsa5990 Год назад

    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.

  • @keithbacalso9433
    @keithbacalso9433 3 года назад +1

    Hi Flutterly, do you also cover RxDart in BLoC?

    • @Flutterly
      @Flutterly  3 года назад

      I will cover RxDart in my Dart series, soon enough!

  • @josephjoey3904
    @josephjoey3904 3 года назад +1

    Please help me. I'm stuck on login system with rest API and register isn't working. Can you make a video? Thanks 😊👍

  • @muhammadyaumil1212
    @muhammadyaumil1212 9 месяцев назад

    does yield same as return in Stream func ?

  • @WimpyWarlord
    @WimpyWarlord 2 года назад

    What a fucking legend.

  • @SamiUllah-tw6rq
    @SamiUllah-tw6rq 4 года назад

    really good explanation !
    i've started watching your playlist is it complete ?

    • @Flutterly
      @Flutterly  4 года назад

      I still have 2 videos to go, Mate.

  • @joseinTokyo
    @joseinTokyo 2 года назад

    brilliant!!!

  • @quicksketch1617
    @quicksketch1617 4 года назад

    Where is coming from this print?
    final streamSubscription = cubit.listen(
    print);

  • @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

  • @dayworkhard
    @dayworkhard 3 года назад

    Best!

  • @siyabongamashilwane7432
    @siyabongamashilwane7432 3 года назад +1

    i love you bro thanks man ur the best.

  • @quicksketch1617
    @quicksketch1617 4 года назад

    Need to import dart async to use stream?

  • @khairulanas
    @khairulanas 3 года назад +1

    you are awesome .... >.

  • @robovirtuoso1354
    @robovirtuoso1354 3 года назад +4

    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.

  • @imankamali5799
    @imankamali5799 4 года назад +1

    Some details are not covered (for beginners)
    But overall it is great

    • @Flutterly
      @Flutterly  4 года назад

      Thank you for the feedback!

  • @dirverslicense
    @dirverslicense 4 года назад +1

    The three people that disliked this video , have youtube channels that tried to teach this concept and failed.

    • @Flutterly
      @Flutterly  4 года назад

      Haha, let them go, man, I would appreciate if they would provide a feedback too, rather than just hitting the dislike button. 😂

  • @Bathusaix
    @Bathusaix 4 года назад

    this video does not have subtitles?

  • @jovanemullings
    @jovanemullings 4 года назад

    what is the difference between yield and return ?

    • @Flutterly
      @Flutterly  4 года назад +2

      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 4 года назад +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 .

  • @imankamali5799
    @imankamali5799 3 года назад +2

    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 ?!😅

  • @ops_tesseract
    @ops_tesseract Год назад

    You should slow down when you are modifying previous code. This helps focusing on what is changing. Otherwise, type it from the beginning please.

  • @Nicosfrs
    @Nicosfrs Год назад +1

    As a not native english speaker, not having subtitles hurt my soul :(

  • @kulveersinghdhanoa
    @kulveersinghdhanoa 4 года назад +1

    What software did you use to make the diagrams?

  • @PGd_108
    @PGd_108 Год назад

    sorry subtitles are disabled

  • @shaaficialli4284
    @shaaficialli4284 4 года назад

    please make a lot of tutorial in bloc

  • @rabbyglaigboussagamouana3785
    @rabbyglaigboussagamouana3785 Год назад

    Please, can you add subtitles

  • @Minhle-bg1rp
    @Minhle-bg1rp 4 года назад

    Please enable auto sub in this video. Im listening very bad. Thanks you for sharing courses.

  • @Rick-ng3lr
    @Rick-ng3lr 2 года назад

    Lol, literally a stream/river. 🤭👍🏻