Great explanation Garrett. I spent the whole day trying to understand the BuildContext from articles and your explanation here was perfect and I now understand how the context works now. Thank you very much.
Thank you so much , u Explained perfectly so basically context is juste looking back in the parent context but not in its child and builder do just that . ITs always like that we don't understand something in programming and we abandon but when we find out it all looks so easy and stupid the whole frustration we were in
Answer to your question at 7:00 : I prefer the code to be written already beforehand in SUCH a video, where really typing code is just a waste of time and irrelevant to the main point of the video, however, in some cases typing the code might be the better way to go. So in my opinion, "it depends on the topic of the video". Really nice video Garett. Thanks.
Excellent video. It's helpful to hear an explanation of WHY it is needed rather just what it is and how its used. Seeing the code written out is great because the video can be paused while the following the explanation.
Awesome explanation. I knew what BuildContext was and knew to use Builder when it didn't work but this finally made it click as to WHY I had to do that. Thanks!
Thanks a lot, people in courses and tutorials forget to explain little things like this , I am just starting to use dart/flutter and I didnt find anyone who explained about this but everyone uses it.
Great video, instantly liked. I hope I am correct, just to add up, the method (class_name).of(context) is a simplified version context.inheritWidgetOfExactType(class_name).. basically, it says "find me the nearest widget up the widget tree that can provide me with this class_name"
Its great explanation about Buildcontext. It hard to understand for beginner but you make it easier. Can you please make video on setState() method and dispose() method to clear the instances
Really good explanation but now we have ScaffoldMessenger and it will work even if you pass context as is, but thank you it really helped me clear alot things about BuildContext.
You didn't explain why we can't use the existing context of the parent and pass it into the child, why do we need to make a new builder and new context??
Great video! :) Nice explanation, with multiple different approaches, good job! At least for me, it's not a problem to have the code written out already, as long as you go through it. The only thing I didn't like in the video is the various flashing colors on you and in behind - I guess you have some kind of a fancy light in your room, but it might be better to turn if off while recording 😬 Thank you for the efforts!
I wanted to create a global service that has a function with showDialog method which can be called from anywhere. So how can i determine which context is currently active in my app or to out it the other way, how to get the context of current widget on screen without having it pass it as a parameter ( which i have heard is not a good way )
@@garrettlovetv No can do, its a corporate project. Can't share, but appreciate the effort. I will create a demo one for reference, till then context as a parameter it is
So I have a flutter ListView with an image picker in a column beneath the title and subtitle, but choosing an image opens that image in every tile instead of the one it was clicked from. How can I use context to only open the selected image in that specific tile it was called from, in the same vertical tree inside a card? I can not figure this out, I think it is impossible.
I appreciate your efforts but it is still not clear to me.Yes it is clearer than before.May be you can come up with another analogy though whatever you gave in the video was ok,for me atleast.Nice voice by the way!!!!