#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
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
I am sure your tutorials will be the recommended reference for Bloc .
Hopefully they will, I spend a lot of time into making them! Thank you so much! ✨
totally agree, explained everything very well
Coming from bloc documentation. All lessons on this playlist are simple, easy to understand and very helpful.
Thank you so much! ✨
They are actually recommended from bloc library documentation. They are the best ever, thank you so much !
Goddamn.... Nobody address this anywhere in flutter. Big kudos to you.
Thank you so much! That's why I created this series for!
I wish there is a clap feature in RUclips like medium, so this video deserves thousands of claps.
Hahaha, thank you so much, really appreciate your kindness. Thankfully there is a like button you can press 🌟
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!!
Yup, I also faced this issue back in the days, haha 😂 thanks!
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.
Thank you so much man!
Man oh man. Timeless series. Keep rewatching every few months. Have these downloaded
Thanks a lot, brother! Means a lot to me! ✨
Best ever! I never watched half an hour long tutorial video without skipping some parts. Thank you so much! You're awesome.
Thank you so much, brother! ✨
@@Flutterly You're most welcome. Thank you for replying.
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.
Thank you so much! ✨ 🥂
This bloc series is brilliant
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 ;)
Just commenting to thank you for this amazing series!
You're welcome, man! Thank you for the positive feedback!
I came back to this video after few months and it saved my day. Thanks!
I've been through many tutorials. and now I find the finest one ever. Really thanks for you effort
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!
Thank you for your feedback, man, I really appreciate it!
Whose this one guy who dislikes your videos? These videos are great, thank you!
Haha, haters, mate, I don't even care about them 👍
Thank you so much. This is the best block tutorial ever. Thanks for sharing
2 years now! Still, this video is the king when it comes to the bloc tutorial.
The way you explain these concepts is really amazing. Thanks for creating this series.
Thank you so much brother!
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!
Wow, this is an amazing compliment, man! Thank you so much! I really appreciate it! Stay tuned for more content!
You made these topics so easy to understand. Thanks WCKD!
You're welcome! Thank you!
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!
Thank you so much for the feedback! ✨
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!
best Bloc series I've ever watched 👌💕👍
Just what I needed, clearly explained, thanks for this WCKD.
I'll surely recommend your series.
Magnificent work bro, the explanation are extremely straightforward, thank you so much for the amazing job
phenomenal ! You have definitely improved ;o;
Thank you so much! Glad you like it!
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.
Very good explanation. Keep up the good work!
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
Thank you so much, brother! I really appreciate it!
@@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
Man, I just posted a video 1 day ago about what I'm gonna do in the future
Great tutorial! It really helps to understand how to use the Bloc instance across the multiple screens. Thank you!
Thank you! Appreciate it!
Thanks you for the wonderful series. Informative, concise and helpful.
You're welcome! Thank you for your feedback!
Thank you, you really helped me to understand the BLoC / Cubit concept !!! 👏🏻👏🏻👏🏻
Thank you so much! ✨ Glad I could help, mate!
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.
Bloc has been like a maze for me and you have helped me greatly in figuring it out. Thanks.
Thank you, mate! This is the greatest feedback for me and my work! Glad I can help you understand bloc even better!
You are the best! love your videos and explanations and this (tutorial) just what I was looking for.
Thank you so much! Glad I could help, mate! 🌟
Best video series ever!
Thank you so much!
Really helpful even if it was 3 years ago. Thank you guy!
One of the Best tutorial i ever seen in my life
Dude your videos are a blessing!
one of the best course still in 2023 ...
the best part is brief explanation of concepts
am loving it
Thank you for your tutorials. This videos are so attractive and the explanation are so amazing. Once again, thank you!
Thanks a lot, brother!
Thanks for the amazing tutorial!
I really like how you explain the things. Thank you.
You're very welcome!
good explanation about Bloc pattern. looking forward from you other interesting series about flutter features.
Thank you, I'll keep 'em coming!
Thank you thank you so much for the great explanation. You are awesome !!!!!
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.
Amazing! Thanks!
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
You're welcome and I'm happy that you like it!
It was so good
And
I look forward to the next episodes
Thank you so much! ✨
thanks for your great efforts, really amazing series
thats the best video tutorial of the whole internet! congrats!
Glad it was helpful!
7th video in a row of your channel keep it up. Also have cleared all the doubts.👌👌
You're welcome, man! Appreciate it!
awesome :) helping a lot in my current project. Thank you for your work.
the best BloC tutorial I've seen. Thanks alot
You're welcome! Thanks! 🌟
Great tutorial. Thank you !
Thank you for this tutorial! Really this is an excellent explanation!
You're really welcome, man! Glad you like it!
Very helpful and informative tutorial thank you
This is a real master class!!! thanks, really appreciated
Thank you sir for making us understand
Fantastic tutorial
Awesome tutorial : )
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.
Thank you so much!
Awesome tutorial! Thank you
Glad you enjoyed it!
Thank you so much for this tutorial! Liked, subscribed and donated!
Thank you so much for your support, I really appreciate it!
This is a very good job. Thank you very much. And keep on the great job you are doing here!!!
Thank you so much! ✨
ilysm for making this
Thank you! 🌟
Looking forward to your next video man....you're awesome
Thank you! Glad you loved it!
+1 sub from me . i used flutter to create my final thesis project. and this helped me . thanks
Great teacher ever!
Thank you for helping me understand BLoC
You're welcome!
im glad i found your videos
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 🍻
Thank you so much! ✨
@@Flutterly you are welcome. I m patiently waiting for next episode. 😁
Thank you very very much for the video
Looking for next episodes! Keep going!
Thank you, man! They'll come soon!
Good tutorial!
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 !
Haha, glad I could help and looking forward to seeing your app!
@@Flutterly Sure ! i will try to finish it with all your tips ! and send it to you !
keep Posting ! Have a great Day .
waiting, waiting, waiting for the next episode!
Good Job Sir...
Best explained so far 🙂👍
Thank you so much! Trying to improve by every video.
Great work subscribed your channel
Just great ! Keep it up
Thank you, I will!
hey thank you so much for this tutorials
You're welcome, man! ✨
dude , your a legend , tysm
i comment just for thant you. it's so amazing !!
You're the best! Thanks!
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
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!!!:)
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.
thank you for this useful series
You're welcome!
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.
Thank you so much!
Awesome awesome awesome. Thaaaaaanks
You're a legend!
Thank you so much! ✨
So helpfully
Great Tutorial on RUclips For BLoc.
Check tutorial #8 on BuildContext, you'll get your answer from there
@@Flutterly Thanx. Understood
i have only one thing to say: thank you so much
Haha, you're welcome!
Whoever is learning about flutter should subscribe to this guy! No jokes!
Thank you so much, man! ✨
@@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
To provide a bloc/cubit globally inside the widget tree, you need to wrap the MaterialApp with a BlocProvider.
@@Flutterly Does that mean the blocProvider doesn't have to be the very first one(root) widget in the widget tree then? Thank you
It doesn't, it can have multiple other widgets above it. It just needs to be above the material app
Fantastic !!!
Thank you! Cheers!
thank you bro, it is amazing
You're welcome, bro! Thanks!
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.
Doh! Just saw that you covered the issue I raised above (two contexts names context!)
Haha, thank you so much, indeed I covered pretty much everything you'd need
Thank you so much
appreciated man❤❤❤❤🎇🎇🎇✨✨🙌🙌🙌