#8 - BuildContext In-Depth Explanation - Fix BlocProvider.of() fails to find a context containing...

Published: 17 November 2020
on channel: Flutterly
36k
2k

Hi there!

Here's the github repository where you can clone all the source code:


In this tutorial I will introduce you to how Flutter builds the widget tree and how the widget tree is structured and organised by using build contexts. Build contexts are a really, really, really important feature of Flutter and I can bet most of you don't understand it 100% accurate. So today I will talk about how you can manually build the widget tree by yourself, along with all the widgets and their specific build contexts. I'll also show you how BlocProvider.of(context) works in order to lookup for a BlocProvider widget inside the widget tree. We'll see, understand and fix the well-known BlocProvider.of() fails to find a context containing a specific bloc/cubit error, and many many more!

All animations were done in VideoScribe, you can try it by clicking my affiliate link ---

You can contact me directly here:

Join my Discord Server ---
Twitter ---
Instagram ---

Also, if you want to support me furthermore you can become an YouTube Member, donate or buy my courses on Udemy, using the following links:

Become an Official YouTube Member! ----
Buy my Udemy Courses! ----
Support me on Revolut! ----
Buy me a Ko-fi! ---
Donate me on Paypal! ---
Support me on Patreon! ---


Watch video #8 - BuildContext In-Depth Explanation - Fix BlocProvider.of() fails to find a context containing... online without registration, duration 23 minute 19 second in high hd quality. This video was added by user Flutterly 17 November 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 36 thousand once and liked it 2 thousand people.