#6 - BLoC Access & Navigation - Local, Route & Global Access with BlocProvider

Поделиться
HTML-код
  • Опубликовано: 17 окт 2020
  • Hi there!
    Here's the github repository where you can clone all the source code:
    github.com/TheWCKD/blocFromZe...
    In this tutorial I will introduce you to how Flutter manages its navigation feature with 1, 2 or more screens. Of course, we'll also learn how to provide a unique instance of a bloc/cubit to multiple screens and we'll dive into all the possible scenarios, which you can encounter while developing a small, medium or even huge application. Anonymous, Named, Generated route access, everything is here and ready to be explained and learned. Enjoy!
    All animations were done in VideoScribe, you can try it by clicking my affiliate link --- www.awin1.com/cread.php?awinm...
    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 RUclips Member, donate or buy my courses on Udemy, using the following links:
    Become an Official RUclips Member! ---- / flutterly
    Buy my Udemy Courses! ---- www.udemy.com/user/tiberiu-po...
    Support me on Revolut! ---- revolut.me/letsgetwckd
    Buy me a Ko-fi! --- ko-fi.com/wckdyt
    Donate me on Paypal! --- www.paypal.me/letsgetwckd
    Support me on Patreon! --- / wckdyt

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

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

    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

  • @Add0w
    @Add0w 3 года назад +34

    I am sure your tutorials will be the recommended reference for Bloc .

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

      Hopefully they will, I spend a lot of time into making them! Thank you so much! ✨

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

      totally agree, explained everything very well

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

      Coming from bloc documentation. All lessons on this playlist are simple, easy to understand and very helpful.

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

      Thank you so much! ✨

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

      They are actually recommended from bloc library documentation. They are the best ever, thank you so much !

  • @puspharajselvaraj8852
    @puspharajselvaraj8852 3 года назад +15

    Goddamn.... Nobody address this anywhere in flutter. Big kudos to you.

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

      Thank you so much! That's why I created this series for!

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

    I wish there is a clap feature in RUclips like medium, so this video deserves thousands of claps.

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

      Hahaha, thank you so much, really appreciate your kindness. Thankfully there is a like button you can press 🌟

  • @user-km6bw7zr9w
    @user-km6bw7zr9w 3 года назад +2

    If someone here like me has several FloatingActionButtons in the project (for example: two for counter change, and one for navigate to second page), and you get a black screen after the Navigator.push(), add heroTag property to every button:
    FloatingActionButton(
    heroTag: 'btn1', ...)
    maybe it will save couple of days for someone))
    P.S. thank you wery much for your tutorials, its REALY helpful!!

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

      Yup, I also faced this issue back in the days, haha 😂 thanks!

  • @dnlbrock
    @dnlbrock 3 года назад +13

    Man... you created a huge shortcut thru bloc learnig curve, by all mean, the best tutorial on net. Eager for the next epsode. Thanks a lot.

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

      Thank you so much man!

  • @lasaint589
    @lasaint589 2 года назад +5

    Man oh man. Timeless series. Keep rewatching every few months. Have these downloaded

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

      Thanks a lot, brother! Means a lot to me! ✨

  • @sarjibkarki1258
    @sarjibkarki1258 3 года назад +7

    Best ever! I never watched half an hour long tutorial video without skipping some parts. Thank you so much! You're awesome.

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

      Thank you so much, brother! ✨

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

      @@Flutterly You're most welcome. Thank you for replying.

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

    Let us take a moment to thank our genius teacher!
    We will keep spamming the comments section with our gratitude.
    Global auth state through bloc was wonderfully explained.

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

      Thank you so much! ✨ 🥂

  • @ucnamnguyen7549
    @ucnamnguyen7549 7 месяцев назад

    This bloc series is brilliant

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

    Your serie of tutorials about BLoC is the best i've ever found on RUclips. We have been creating, with my 2 friends, for 1 year an application with BLoC, and many things you're explaining through your videos have never been implemented or correctly used in our application....
    We really thank you, you're kind of our Senpai ;)

  • @GabrielCosta-xr5vr
    @GabrielCosta-xr5vr 3 года назад +9

    Just commenting to thank you for this amazing series!

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

      You're welcome, man! Thank you for the positive feedback!

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

    I came back to this video after few months and it saved my day. Thanks!

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

    I've been through many tutorials. and now I find the finest one ever. Really thanks for you effort

  • @mattfrowe7697
    @mattfrowe7697 3 года назад +10

    Would just like to say this is a fantastic series. Really well explained concepts with good examples and runs at just the right pace. Thank you!

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

      Thank you for your feedback, man, I really appreciate it!

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

    Whose this one guy who dislikes your videos? These videos are great, thank you!

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

      Haha, haters, mate, I don't even care about them 👍

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

    Thank you so much. This is the best block tutorial ever. Thanks for sharing

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

    2 years now! Still, this video is the king when it comes to the bloc tutorial.

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

    The way you explain these concepts is really amazing. Thanks for creating this series.

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

      Thank you so much brother!

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

    Thank you so much for the awesome tutorials! These tutorials are honestly the best I have ever seen and I don't think I have ever learned so much in such a little amount of time. Thank you thank you thank you!

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

      Wow, this is an amazing compliment, man! Thank you so much! I really appreciate it! Stay tuned for more content!

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

    You made these topics so easy to understand. Thanks WCKD!

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

      You're welcome! Thank you!

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

    Don't understand why people disliked this video. These are real quality learning materials. Sometimes I needed a little bit of patience to go through all the processes, but really, they are very clearly explained. Thanks a lot!

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

      Thank you so much for the feedback! ✨

  • @cyrilledakhlia3761
    @cyrilledakhlia3761 8 месяцев назад

    I just discovered your video after multiple days of struggle on how to tackle this exact problem of routing while keeping the same instances of a Bloc/Cubit, and your video appeared as a real saver for me!
    Thank you very much sir!
    You deployed so much work, attention and details in your video, it deserves to be in the official documentation!

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

    best Bloc series I've ever watched 👌💕👍

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

    Just what I needed, clearly explained, thanks for this WCKD.

  • @ivanyoed
    @ivanyoed 2 года назад +1

    I'll surely recommend your series.

  • @eadoard
    @eadoard 7 месяцев назад

    Magnificent work bro, the explanation are extremely straightforward, thank you so much for the amazing job

  • @axisad3054
    @axisad3054 3 года назад +10

    phenomenal ! You have definitely improved ;o;

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

      Thank you so much! Glad you like it!

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

    Thank you very much, the only bloc course I understood after trying many lol. Kudos to you ...Your course still works like charm even after 3 years down the road in 2023.

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

    Very good explanation. Keep up the good work!

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

    the best ever teaching stuff for learning bloc , not only bloc but you also some other flutter important concepts as well , i really hope more series about flutter from you....mind blowing stuff

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

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

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

      @@Flutterly but are you preparing another important series about flutter any topics ?
      yes answer will make me happy bcz whatever the topic will be , i will follow that as well

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

      Man, I just posted a video 1 day ago about what I'm gonna do in the future

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

    Great tutorial! It really helps to understand how to use the Bloc instance across the multiple screens. Thank you!

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

      Thank you! Appreciate it!

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

    Thanks you for the wonderful series. Informative, concise and helpful.

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

      You're welcome! Thank you for your feedback!

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

    Thank you, you really helped me to understand the BLoC / Cubit concept !!! 👏🏻👏🏻👏🏻

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

      Thank you so much! ✨ Glad I could help, mate!

  • @qwertgfhxc
    @qwertgfhxc 4 месяца назад

    I indeed watched this video several times. I think it's one of the more crucial ones, because it defines your apps architecture a lot.

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

    Bloc has been like a maze for me and you have helped me greatly in figuring it out. Thanks.

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

      Thank you, mate! This is the greatest feedback for me and my work! Glad I can help you understand bloc even better!

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

    You are the best! love your videos and explanations and this (tutorial) just what I was looking for.

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

      Thank you so much! Glad I could help, mate! 🌟

  • @iNFiNiTY-yf3rk
    @iNFiNiTY-yf3rk 3 года назад +3

    Best video series ever!

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

      Thank you so much!

  • @djedankharkryonia4223
    @djedankharkryonia4223 Месяц назад

    Really helpful even if it was 3 years ago. Thank you guy!

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

    One of the Best tutorial i ever seen in my life

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

    Dude your videos are a blessing!

  • @zakwanibrahim7283
    @zakwanibrahim7283 8 месяцев назад

    one of the best course still in 2023 ...
    the best part is brief explanation of concepts
    am loving it

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

    Thank you for your tutorials. This videos are so attractive and the explanation are so amazing. Once again, thank you!

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

      Thanks a lot, brother!

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

    Thanks for the amazing tutorial!

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

    I really like how you explain the things. Thank you.

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

      You're very welcome!

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

    good explanation about Bloc pattern. looking forward from you other interesting series about flutter features.

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

      Thank you, I'll keep 'em coming!

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

    Thank you thank you so much for the great explanation. You are awesome !!!!!

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

    Dude, you're awesome, been struggling with Bloc and architecture in Flutter for a while! I launched a social media app for travelers and now pretty much building it again from scratch in a way better structured way.

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

    Life saviour i am going to start a new project and this is gift to manage the separation of concern with BLoC, you have some better way to explain and thank you for github code

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

      You're welcome and I'm happy that you like it!

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

    It was so good
    And
    I look forward to the next episodes

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

      Thank you so much! ✨

  • @sondoskannous3306
    @sondoskannous3306 2 года назад +1

    thanks for your great efforts, really amazing series

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

    thats the best video tutorial of the whole internet! congrats!

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

      Glad it was helpful!

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

    7th video in a row of your channel keep it up. Also have cleared all the doubts.👌👌

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

      You're welcome, man! Appreciate it!

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

    awesome :) helping a lot in my current project. Thank you for your work.

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

    the best BloC tutorial I've seen. Thanks alot

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

      You're welcome! Thanks! 🌟

  • @mck0000
    @mck0000 3 месяца назад

    Great tutorial. Thank you !

  • @user-kw4kp7eq9m
    @user-kw4kp7eq9m 3 года назад +3

    Thank you for this tutorial! Really this is an excellent explanation!

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

      You're really welcome, man! Glad you like it!

  • @sonamohialdin3376
    @sonamohialdin3376 8 месяцев назад

    Very helpful and informative tutorial thank you

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

    This is a real master class!!! thanks, really appreciated

  • @rajubhai1796
    @rajubhai1796 2 года назад +1

    Thank you sir for making us understand

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

    Fantastic tutorial

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

    Awesome tutorial : )

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

    To tell the truth, I am very lucky to find this series, I am suing bloc library, but I didn't understand the details and the comprehensive overview of all items.

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

    Awesome tutorial! Thank you

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

      Glad you enjoyed it!

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

    Thank you so much for this tutorial! Liked, subscribed and donated!

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

      Thank you so much for your support, I really appreciate it!

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

    This is a very good job. Thank you very much. And keep on the great job you are doing here!!!

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

      Thank you so much! ✨

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

    ilysm for making this

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

    Looking forward to your next video man....you're awesome

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

      Thank you! Glad you loved it!

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

    +1 sub from me . i used flutter to create my final thesis project. and this helped me . thanks

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

    Great teacher ever!

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

    Thank you for helping me understand BLoC

  • @vicsystems
    @vicsystems 4 месяца назад

    im glad i found your videos

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

    I have just now completed the 6th episode. Even though I was working on bloc and building my app. Going through yours videos I felt like I have learned something and renewed interest towards bloc. Keep up the good work. Cheers 🍻

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

      Thank you so much! ✨

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

      @@Flutterly you are welcome. I m patiently waiting for next episode. 😁

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

    Thank you very very much for the video

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

    Looking for next episodes! Keep going!

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

      Thank you, man! They'll come soon!

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

    Good tutorial!

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

    I promise you when i will gain money from my app i will donate you a lot ! REALLY YOU ARE A LIFESAVER ! THANK YOU ! and please keep posting as soon as possible !

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

      Haha, glad I could help and looking forward to seeing your app!

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

      @@Flutterly Sure ! i will try to finish it with all your tips ! and send it to you !
      keep Posting ! Have a great Day .

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

    waiting, waiting, waiting for the next episode!

  • @infernoinfotech677
    @infernoinfotech677 2 года назад +2

    Good Job Sir...

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

    Best explained so far 🙂👍

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

      Thank you so much! Trying to improve by every video.

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

    Great work subscribed your channel

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

    Just great ! Keep it up

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

    hey thank you so much for this tutorials

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

      You're welcome, man! ✨

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

    dude , your a legend , tysm

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

    i comment just for thant you. it's so amazing !!

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

      You're the best! Thanks!

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

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

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

    Very useful one. Best way to provide different bloc for different pages with multiple dynamic parameters? It's the one running on my mind. Looking forward to your next tutorial!!!! Please upload soon!!!:)

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

      A tutorial like this isn't really related to bloc, but I'll make sure to cover this exact topic (transferring multiple dynamic parameters to different pages) when I'll get to developing apps in future videos.

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

    thank you for this useful series

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

    Finished watching it, It is great revision video if you already know about bloc access. I think it will be a timeless video until and unless it is deprecated.

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

      Thank you so much!

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

    Awesome awesome awesome. Thaaaaaanks

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

    You're a legend!

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

      Thank you so much! ✨

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

    So helpfully

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

    Great Tutorial on RUclips For BLoc.

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

      Check tutorial #8 on BuildContext, you'll get your answer from there

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

      @@Flutterly Thanx. Understood

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

    i have only one thing to say: thank you so much

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

      Haha, you're welcome!

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

    Whoever is learning about flutter should subscribe to this guy! No jokes!

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

      Thank you so much, man! ✨

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

      @@Flutterly Hey man, I've got another question concerning to global access for the provider. Do we just wrap our material app with our provider to have global access for the provider or we should have our provider be the root widget in order to provide global access? Thank you

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

      To provide a bloc/cubit globally inside the widget tree, you need to wrap the MaterialApp with a BlocProvider.

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

      @@Flutterly Does that mean the blocProvider doesn't have to be the very first one(root) widget in the widget tree then? Thank you

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

      It doesn't, it can have multiple other widgets above it. It just needs to be above the material app

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

    Fantastic !!!

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

    thank you bro, it is amazing

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

      You're welcome, bro! Thanks!

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

    This is just soooo gooood!!! I bought the Udemy course. I hope you get some money for it :-) you deserve it!
    I did find in this video that I needed to lift the BlocProvider above the MaterialApp instead of the HomeScreen to make the code work. Otherwise it was reporting that it couldn't find the CounterCubit in the ancestor context.

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

      Doh! Just saw that you covered the issue I raised above (two contexts names context!)

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

      Haha, thank you so much, indeed I covered pretty much everything you'd need

  • @AkashRaj-wd6wm
    @AkashRaj-wd6wm Год назад

    Thank you so much

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

    appreciated man❤❤❤❤🎇🎇🎇✨✨🙌🙌🙌