ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

#3 - Flutter BLoC Concepts - BlocProvider, BlocBuilder, BlocListener | BLoC - from Zero to Hero

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2020
  • Hi there!
    Today we will take a look at all of the flutter_bloc concepts like BlocProvider, BlocBuilder, BlocListener, RepositoryProvider, MultiBlocProvider, MultiBlocListener, MultiRepositoryProvider.
    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

ความคิดเห็น • 278

  • @Flutterly
    @Flutterly  3 ปีที่แล้ว +17

    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

    •  3 ปีที่แล้ว +1

      does it have more information than this series?

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +3

      Not really, it's just a much quicker way to access the chapters. Just like a cheatsheet.

    • @deepaknayak6715
      @deepaknayak6715 3 ปีที่แล้ว

      Thank you

    • @jainendrasingh8473
      @jainendrasingh8473 3 ปีที่แล้ว

      BlocProvider.of() called with a context that does not contain a CounterCubit.
      No ancestor could be found starting from the context that was passed to
      BlocProvider.of().
      I'm facing this issue please help!!

  • @adityaprasaddhal2462
    @adityaprasaddhal2462 3 ปีที่แล้ว +60

    The best explaination in the planet, I watched more than 10 videos on bloc but was unable to understand until now

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +2

      Thank you so much, mate! 🌟

    • @andreajr2021
      @andreajr2021 ปีที่แล้ว

      🤣🤣🤣

  • @admincreatives4242
    @admincreatives4242 3 ปีที่แล้ว +25

    Guys I request everyone here to go through entire series of his BLoC Concepts it's worth watching ... for sure you will get something out of it ... THE GREATEST SERIES on this topic.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much! ✨ Appreciate it!

  • @dsz14
    @dsz14 3 ปีที่แล้ว +9

    I'm still on 7 minutes of video but already had to pause and and come here to congratulate you for the amazing way to explain bloc.
    Keep going and thanks for this video.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +2

      Thank you so much for your kind feedback, man! Really appreciate it! I'll keep them coming!

  • @jjsportify77
    @jjsportify77 3 ปีที่แล้ว +8

    Guys this is the gem in learning about Bloc in Flutter...

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Haha, thanks, the diamond 🔹

  • @yeikeluriartearteaga9534
    @yeikeluriartearteaga9534 3 ปีที่แล้ว +11

    Excellent explanation, the images help a lot and the examples in the code cover all the gaps that may exist. It seemed very complicated at first but I am already internalizing the basic concepts. Thanks for the videos, I look forward to more of this type!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +3

      Thank you so much for your extended feedback, glad I could help! More videos coming soon.

    • @biplove6110
      @biplove6110 ปีที่แล้ว

      @@Flutterly why we use statefull instead of stateless

  • @CoopPlaysYoutuber
    @CoopPlaysYoutuber 3 ปีที่แล้ว +5

    wow man this is impressed ! you are without a doubt gifted at teaching and presenting. Everybody can clearly see that you have taken a lot of time preparing everything. keep up the good work !

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much, haha, would call it gifted though. I just like sharing my knowledge with others, haha

  • @prabhathdarshana9015
    @prabhathdarshana9015 3 ปีที่แล้ว +4

    Much needed explonation! I was lost on flutter_bloc widgets for quiet long time until I found this guy explaining it so smoothly! man you area hero!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much for your kind words!

  • @AmanKumar-vc2hi
    @AmanKumar-vc2hi 3 ปีที่แล้ว +3

    I CANNOT THANKYOU ENOUGH FOR THESE TUTORIALS!!!!! I was so confused about this library, but you made this a piece of cake thanks a lot dude!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much, I'm really glad my tutorials could help!

  • @satishraizada5207
    @satishraizada5207 3 ปีที่แล้ว +2

    Excellent video explains the BLoC in best way, would love to see more such content on flutter architecture when starting new project.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      That's exactly what the next video will be all about! Stay tuned!

  • @rickycoates3003
    @rickycoates3003 ปีที่แล้ว

    Lol, if I had left to learn all of this from the docs it's would take me days. A quick easy 3 hours from you, make me understand all God bless you

  • @pweetyruqoyah719
    @pweetyruqoyah719 3 ปีที่แล้ว +2

    I love you flutterly, what took me so late to find this channel,
    How can one explain concept so good like this ?
    YOU ARE THE BEST...
    I'm sticking to this channel forever

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Haha, thanks! 🌟 It's hard to find me since I'm a little channel right now, but hopefully I'll get bigger with time!

  • @gameofcodes9832
    @gameofcodes9832 3 ปีที่แล้ว +5

    How did I not noticed this channel in my flutter journey?
    Thank your for this amazing video :)
    And please we want more video from you

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      It's a small channel, mate. Hopefully it will get bigger by time. More content is going to come soon.

  • @StefanoV827
    @StefanoV827 3 ปีที่แล้ว +2

    OMG! I never understood BLoC ... and now, it's easy thanks to you!!!!! Amazing!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much, I really appreciate it!

  • @billynyk
    @billynyk 3 ปีที่แล้ว +1

    You are a good teacher about blocProvider concepts, you make me understand. Thanks.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much, I'm glad I could help!

  •  3 ปีที่แล้ว +1

    Amazing tutorial, I'm using flutter bloc since 1.5 years, and your video helped me clear things up, every flutter dev must watch this video!! Thank you very much for your work!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      You're very welcome!

  • @ujjwalbiswas8400
    @ujjwalbiswas8400 3 ปีที่แล้ว +1

    This is the best explanation of bloc,... Keep up the good work.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      I will, thanks!

  • @zubaeralambihimrootdevs1592
    @zubaeralambihimrootdevs1592 3 ปีที่แล้ว +1

    Take love from Bangladesh. The easiest and simplest yet so elaborate tutorial on BLoC so far. Thanks a lot for this tutorial.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much, man! I really appreciate all your kind words!

  • @trungledang5225
    @trungledang5225 2 ปีที่แล้ว +3

    Sir, you are incredible, I got goosebump because of your teaching way, it's really really great, I just want to say, you're a great teacher

    • @Flutterly
      @Flutterly  2 ปีที่แล้ว +1

      Thank you so much for your kind words!

  • @Flutterly
    @Flutterly  3 ปีที่แล้ว +1

    If you haven't completely understood how BuildContext works inside Flutter in addition to the BLoC Library, I recommend you to watch my dedicated video on this topic.
    You can find the video right here ---> th-cam.com/video/iNgwFMm3opE/w-d-xo.html
    Meanwhile, a new version of bloc has been released (6.1.0) and it comes with some important changes.
    You can check them out in the video here ---> th-cam.com/video/TNVxDuSJ00I/w-d-xo.html

  • @jayefoucher9586
    @jayefoucher9586 ปีที่แล้ว

    THANK YOU. This is the most comprehensive explanation of Blocs I've found... thank you for explaining this so well!

  • @DuarteRoso
    @DuarteRoso ปีที่แล้ว +2

    This course is gold! All my questions were answered by the end of it. Well done mate 👍

  • @Ayan-od8hk
    @Ayan-od8hk ปีที่แล้ว

    Very beautifully explained. This is the easiest explanation I found on the internet of bloc concepts

  • @VfLWolfsburg1011
    @VfLWolfsburg1011 ปีที่แล้ว

    Thank you so much! Finally someone explaining concepts in-depth, visualizing them etc. Plus you know which questions to ask to understand everything.

  • @andregroschel9761
    @andregroschel9761 3 ปีที่แล้ว +5

    Thank you very much for this series on Bloc! Best tutorial out there, great explanation and you answered all of the questions that were in my head :)

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much, glad you liked it! ♥

  • @PursuitOfGlassSkin
    @PursuitOfGlassSkin 3 ปีที่แล้ว +1

    The best explanation of BLoC architecture I've seen. Thank you!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Glad it was helpful!

  • @diman9918
    @diman9918 3 ปีที่แล้ว +1

    The best explanation , I watched more than 100 videos on bloc but this is the best one i have got thank you very much waiting for new videos of yours

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Glad you found my videos, mate! I appreciate your feedback!

  • @haythemdridi8564
    @haythemdridi8564 11 หลายเดือนก่อน

    this course must be paid , i'm happy to find it free on youtube
    the best place to learn bloc .. thank you :D

  • @TheTaygan
    @TheTaygan 3 ปีที่แล้ว +2

    Excellent!!! The right pace with the right amount of info. Tx

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! ✨

  • @m4sterkg
    @m4sterkg 3 ปีที่แล้ว +2

    This video is pure gold.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much!

  • @nayefradwi7132
    @nayefradwi7132 3 ปีที่แล้ว +3

    this whole playlist is amazing, really next level work. I love this playlist

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Glad you enjoy it!

  • @TechyDiscGolf
    @TechyDiscGolf 3 ปีที่แล้ว +5

    Such a good introduction. This was a great video and you definitely deserve more views/subs! 🎉

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! Hopefully with time I'll have more views and subs!

  • @abhijitpani3438
    @abhijitpani3438 3 ปีที่แล้ว +1

    First time in my youtube life I have subscribed to a topic

  • @mrutyunjayagiri982
    @mrutyunjayagiri982 3 ปีที่แล้ว +1

    Awesome. Most Recommended Tutorials For BLoC.

  • @laz7774
    @laz7774 3 ปีที่แล้ว +2

    What a talented teacher you are.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Haha, thank you! For a moment I thought I received 10,199,100 views on a video haha 😂

    • @laz7774
      @laz7774 3 ปีที่แล้ว

      @@Flutterly 😂😂😂😂😂😂😂

  • @salmanfrahman9073
    @salmanfrahman9073 3 ปีที่แล้ว +2

    WOW!!! Such a brilliant presentation and explanation, You made it as easy as it possibly can be.
    You should get million subs :)

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much for your kind words! It helps me a lot!

  • @irfantariq4974
    @irfantariq4974 3 ปีที่แล้ว +1

    Cannot be explained better than this..Great work.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much! ✨

  • @ivankrupik2511
    @ivankrupik2511 3 ปีที่แล้ว +1

    Best explanation i ever seen before.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you, Ivan! Really appreciate it! ✨

  • @ertaneyimaya768
    @ertaneyimaya768 3 ปีที่แล้ว +2

    perfect. the best tutorial without a doubt on bloc. thank you.

  • @legardemontcho6739
    @legardemontcho6739 3 ปีที่แล้ว +1

    Thank you a lot for the tutorial. The best tutorial of bloc that i have see

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Glad it helped! Thank you!

    • @legardemontcho6739
      @legardemontcho6739 3 ปีที่แล้ว

      @@Flutterly Please can you explaint the different beetween BlocProvider and RepositoryProvider? How can i use it ?

  • @brucewayne.2003
    @brucewayne.2003 3 ปีที่แล้ว +3

    Cant wait for next tutorial, you expain it so well.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! I'm working on it!

  • @on1235
    @on1235 3 ปีที่แล้ว +1

    Thank you for all the amount of content you are providing us for free

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      My pleasure!

  • @tonyivanov-h8n
    @tonyivanov-h8n 28 วันที่ผ่านมา

    Very clear explanation. Thank you!

  • @chiranjeevisaride8655
    @chiranjeevisaride8655 3 ปีที่แล้ว +1

    Amazing video great summarization of Block concepts in simple way 👏🏻👏🏻👏🏻👏🏻

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thanks a lot! I'll keep em coming,

  • @mihlet1483
    @mihlet1483 ปีที่แล้ว

    you are really amazing and the best teacher on this topic i have ever see, thanks for sharing this man

  • @vinishakolla9677
    @vinishakolla9677 3 ปีที่แล้ว

    This is the first video I have watched of yours. Saw many video , but it was difficult to understand . But your way of explanation is awesome which explains it very clear. Thanks a lot for making these videos. Inspired by your first video , I have subscribed to your channel.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

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

  • @manasasompalli
    @manasasompalli 3 ปีที่แล้ว +1

    Wonderful Explanation.......the best best best of all.....

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you, so, so, so, much!

  • @OtarBediashvili
    @OtarBediashvili 3 ปีที่แล้ว +1

    This is the easiest explanation ever. You are godsent

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! ✨

  • @fadilahumar4146
    @fadilahumar4146 4 หลายเดือนก่อน

    whade best explained sir keep it u r good teacher 🎉🎉

  • @TreyHope
    @TreyHope 3 ปีที่แล้ว +1

    These videos are super helpful bro. Thank you for making it easy to understand.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much, brother, glad I could help!

  • @JK92007
    @JK92007 3 ปีที่แล้ว +1

    👌👌👌👌👌👌👌👌 more videos like this...you R my university professor......

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! More videos will come!

  • @kanyshaiosmonova2008
    @kanyshaiosmonova2008 ปีที่แล้ว

    Thank you. I will rewatch it in order understand better

  • @officialismailshah
    @officialismailshah 2 ปีที่แล้ว

    love you man you are just amazing when it come to bloc library, state management and other Flutterly stuff.. respect man🎇🎇🎇✨✨✨🙌🙌🙌

  • @acornerofherheart-jr9pl
    @acornerofherheart-jr9pl 22 วันที่ผ่านมา

    whan an amazing explanation given by you.. perfect video

  • @badritbinimran428
    @badritbinimran428 3 ปีที่แล้ว

    An easy explanation to a hard concept. Thanks!

  • @fuxxel
    @fuxxel 3 ปีที่แล้ว +1

    A truly very valuable tutorial series. Thank you very much!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      You're welcome, thank you!

  • @numanarif2597
    @numanarif2597 3 ปีที่แล้ว +1

    Thank you, you just earned a new subscriber. Congratulations

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much, I appreciate it!

  • @alexw850
    @alexw850 ปีที่แล้ว

    That was one of the most helpful videos I have ever watched. 🚀🙏Love your visual details and style of teaching. Keep it up. #Flutter

  • @msharibahmed
    @msharibahmed 3 ปีที่แล้ว

    Thank you so much for your time.

  • @mqhamdam
    @mqhamdam 3 ปีที่แล้ว

    bro you dont need to ask to give you a like ;) You deserve more then just like! best explanitaion!

  • @BeforeLeavingLife
    @BeforeLeavingLife 3 ปีที่แล้ว +1

    It is the best content in the field. Thank you

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      You're welcome, man!

  • @senakahraman2715
    @senakahraman2715 2 ปีที่แล้ว

    you are such an excellent teacher for software thank you !

  • @rzouga8878
    @rzouga8878 2 ปีที่แล้ว

    Thank you so much! These concepts are very easy to understand with you!

  • @Ok-Chance
    @Ok-Chance ปีที่แล้ว

    OMG this is the best explanation ever

  • @user-pl4ed6fj3m
    @user-pl4ed6fj3m 2 ปีที่แล้ว

    Фильтр, конечно, моё почтение

  • @cindinishimoto9528
    @cindinishimoto9528 3 ปีที่แล้ว +1

    Amazing Bloc series! Congrats on that and keep up the good work!!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much, man! Really appreciate it!

  • @KenWhipday
    @KenWhipday 3 ปีที่แล้ว +1

    Another excellent explanation - thank you!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! I appreciate every word!

  • @ankiy
    @ankiy 3 ปีที่แล้ว +1

    Literally killed the bloc bruhh great video. ❤️🔥❤️❤️❤️❤️

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thanks, bruh! Hugs and love 🔥

  • @christopherotutu3765
    @christopherotutu3765 3 ปีที่แล้ว +1

    Great Job man, the explanation was really clear. Please am finding hard to get the #6 - Bloc Access video

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thanks! Currently I'm working on it

  • @shakhzodme
    @shakhzodme 3 ปีที่แล้ว +1

    Love your tutorials! They are the best in the entire universe! =)

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much! ✨

  • @OveStoerholt
    @OveStoerholt 3 ปีที่แล้ว +1

    Really well made and cool video! Thanks!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! ✨ I really appreciate it

  • @alexlibak
    @alexlibak 3 ปีที่แล้ว +1

    Wow! You're amazing! Keep on doing great stuff!!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much, I will!

  • @1dhoom11
    @1dhoom11 3 ปีที่แล้ว +1

    thank you for this tutorial it helped me a lot
    Waiting for the next one

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      You're welcome, mate! I'm working on it, subscribe and activate the notification bell so that you won't miss it!

  • @zeorjvistr6245
    @zeorjvistr6245 3 ปีที่แล้ว +1

    You are doing a great job you will achieve a lot of fame

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thank you so much for your kind words! Really appreciate your feedback. Indeed it takes a lot of time to make this videos but I hope that in the end they'll be appreciated!

  • @Ali_Alhajji
    @Ali_Alhajji ปีที่แล้ว +1

    What's the extension you use that adds vertical lines to indicate the code blocks?

  • @ermiyaskasahun4796
    @ermiyaskasahun4796 3 ปีที่แล้ว +1

    Thank you sir. You are a flutter ninja. Can you do some tutorials on flutter multimedia like streaming audio and video files, for the future, please.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Yes, I will, thanks!

  • @whyshock
    @whyshock 3 ปีที่แล้ว +1

    At 17:34 , on left hand screen What plugin are using to get the outline for each widget? The "dashed " outline.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      stackoverflow.com/questions/62379299/why-are-the-flutter-guide-lines-broken-in-vs-code

  • @MrVipulLal
    @MrVipulLal 6 หลายเดือนก่อน

    Beautiful playlist. 🙏

  • @konradbejger2232
    @konradbejger2232 3 ปีที่แล้ว +1

    nice! keep going. Looking forward for some more :)

  • @markgargan5793
    @markgargan5793 หลายเดือนก่อน

    Class video!! What extension are you using in VSCode that provides the tree type dashed line structure in your widget class like at 12:03?

  • @Nicosfrs
    @Nicosfrs ปีที่แล้ว

    This course is sick!!!!

  • @mustafahasria3045
    @mustafahasria3045 3 ปีที่แล้ว +1

    The best explanation i watch ever
    but i have a little question i tried to move to another screen when i click on button and i wrap this button with BLOC builder and it pushed for one not multiple time but you said it will be pushed more then on time if you can answer me i will be thankful

  • @Nurhuda-xm9ek
    @Nurhuda-xm9ek 3 ปีที่แล้ว +1

    very cool video man good jobs

  • @nhs.14
    @nhs.14 2 ปีที่แล้ว +1

    nice video! i want to ask a question, what happen if you use snackbar using blocprovider? and which extension did you use to show the tree of the widget using dotted line? that was pretty neat, and i can easily which widget is the child of which widget

  • @DaveDeDog
    @DaveDeDog 3 ปีที่แล้ว +1

    Awesome explanations! thank you !!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      You're welcome!

  • @mohammedjbeil1788
    @mohammedjbeil1788 5 หลายเดือนก่อน

    Wow , thank you for your effort . keep going

  • @nahitfidanci
    @nahitfidanci 3 ปีที่แล้ว +1

    Hi Wckd, I have a question for you.
    We use BlocProvider.value() when navigating to another screen because BuildContext will search for closest Navigator, upward to widget tree. And new screen will be children of MaterialApp finally. Unless we provide BlocProvider above MaterialApp, we cannot access to the bloc. Because our BuildContext's current location was changed. That's why providing BlocProvider.value is needed. And It basically wraps the navigated screen with the current instance of the bloc. It is just like to create a new BlocProvider but with an existance instance.
    That's why we should close BlocProvider manually. Because in navigated screen we use only the current instance of the bloc. If we close it, it will be disposed in the first screen too.
    Did I understand correctly? Or am I missing something else?

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      If the cubit/bloc instance was created primarily with the BlocProvider widget somewhere up in the widget tree, and then you used BlocProvider.value() to provide that instance furthermore to other screen/screens, then the thing is that you DON'T NEED TO CLOSE it in the dispose methods of these screens. That's because the instance has been initially provided by the BlocProvider() widget.
      However, if you create the instance manually, e.g final WeatherBloc weatherBloc = WeatherBloc() somewhere at the beginning, and you use BlocProvider.value() to inject it into specific screens, then you WILL NEED TO CLOSE IT MANUALLY into the dispose methods of those screens. And that's only because you created it manually, as opposed to automatically via BlocProvider() in the previous example.
      Hope you understood, if not, let me know here once again what are your concerns.

    • @nahitfidanci
      @nahitfidanci 3 ปีที่แล้ว +1

      @@Flutterly Yes, I understood. But do you think in the right way in the first paragraph? Injection of existance Bloc to another screen is just like wrapping new screen with a current bloc instance. Just like we do it first place.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      It doesn't matter, it depends on what you prefer. Both are fine as long as you take care of closing the bloc in the second scenario.

  • @martinfierro2779
    @martinfierro2779 3 ปีที่แล้ว +1

    Excellent explanation, the best!!! Thanks :)

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you! I appreciate it! ♥

  • @codesnacksIO
    @codesnacksIO 3 ปีที่แล้ว +1

    I highly doubt the background voice is artificial.. probably AI powered voiceover ..but who cares cause the content is so great!! Thanks for making lives easier!! :)

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Mate, it's just my voice haha, didn't have a great microphone back then. Take a look at newer videos haha, I guess my voice sounds better. 😂

    • @codesnacksIO
      @codesnacksIO 3 ปีที่แล้ว +1

      @@Flutterly haha, lol actually it isn't just about the voice but you never get stuck or anything!! All I can say is brilliant!! Long way to go :)

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Haha, well, the audio is well cut and processed before. I usually record at least 45 minutes of content and the final version has only around 30 minutes. That's why it seems like it's a big chuck of uninterrupted content. Thanks a lot for the feedback! ✨

    • @codesnacksIO
      @codesnacksIO 3 ปีที่แล้ว +1

      So awesome! 😎

  • @kamransaeb1134
    @kamransaeb1134 ปีที่แล้ว

    Thanks for the videos! great job man

  • @abdmo7575
    @abdmo7575 11 หลายเดือนก่อน

    these vids makes me appreciate getx even more
    its not as clean but something gotta give..

  • @2LiveGamer
    @2LiveGamer 10 หลายเดือนก่อน

    man u saving my life, i was doing bloc all wrong :c

  • @NiwoogabaJoelxxx
    @NiwoogabaJoelxxx 3 ปีที่แล้ว +1

    The perfect tutorial really helped.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thanks, brother! ✨

  • @reanitchannel
    @reanitchannel 3 ปีที่แล้ว +1

    Thank you and need more videos

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      You're welcome! Yup, more tutorials will come

    • @reanitchannel
      @reanitchannel 3 ปีที่แล้ว

      @@Flutterly you're save my life

    • @reanitchannel
      @reanitchannel 3 ปีที่แล้ว +1

      could I get project that you're using BlocRepository? cos I really need this and can't understand In the documentation of that package

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Unfortunately, no, it's a closed source project. You will understand more in the next video. It will come out soon

  • @dimitridev9126
    @dimitridev9126 3 ปีที่แล้ว +1

    Really good video thank you !

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      You're welcome, glad I could help!

  • @igortrapp30
    @igortrapp30 2 ปีที่แล้ว +1

    Great work man. May I ask, what vs code theme is that? Do you use any other useful extensions aside from the one you showed? Thanks

  • @fidamuntaseer1989
    @fidamuntaseer1989 3 ปีที่แล้ว +1

    Good explanation...

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you mate, I appreciate it!

  • @user-jg2kz8vv6o
    @user-jg2kz8vv6o 3 ปีที่แล้ว +2

    Waiting for the next tutorials!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      They'll come for sure! Subscribe to not miss any! Thanks!

  • @shruti-rh2gh
    @shruti-rh2gh หลายเดือนก่อน

    Hii please reply. can't we use Column and than add BlocBuilder and BlocListner seperately in the column's children.

  • @Notion615
    @Notion615 2 ปีที่แล้ว

    really good video, thank you for putting this out there for free. quick question.. Is the builder in BlocConsumer called multiple times per state like a regular BlocBuilder? What if we have some ui widgets that we want rebuilt once per state change. bloclistener doesnt return a widget and its child is outside the scope of the state.