Тёмный

Understanding BuildContext in Flutter 

Garrett Love
Подписаться 19 тыс.
Просмотров 32 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 89   
@williamkwabla
@williamkwabla 4 года назад
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.
@dariusfathi5520
@dariusfathi5520 4 года назад
it's was a good deep explanation of what BuildContext is . thank you , and please do more like this !
@garrettlovetv
@garrettlovetv 4 года назад
Thank you thank you! Will do!
@Klazyo
@Klazyo 4 года назад
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
@ezalor9555
@ezalor9555 4 года назад
agreed
@scienceblossom6197
@scienceblossom6197 4 года назад
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.
@garrettlovetv
@garrettlovetv 4 года назад
This is great feedback, thanks! Thanks for watching.
@jw4659
@jw4659 4 года назад
Yes - I agree with this.
@melindauivari9537
@melindauivari9537 4 года назад
Agreed
@taimoorghafar1868
@taimoorghafar1868 2 года назад
Now I can explain BuildContext to anyone 😎😎 Thank you for such great explaination 💗
@mondomeccano
@mondomeccano Год назад
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.
@tadaspetra
@tadaspetra 2 года назад
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!
@azackmatoff2570
@azackmatoff2570 4 года назад
This might be the best tutorial/explanation I've seen... You should definitely keep making videos on different topics! thanks man!
@lezlee3137
@lezlee3137 4 года назад
this is it! kind of tutorials we missing ...thank you and please we need more
@syslinebilisim453
@syslinebilisim453 3 года назад
I really understood clearly what you were conveying. Thanks a lot.
@garrettlovetv
@garrettlovetv 3 года назад
Glad it helped!
@SteeveCabrel
@SteeveCabrel 3 года назад
wow this just saved me hours of debugging. Thanks
@kengreg01
@kengreg01 3 года назад
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.
@thinleyjimmydorji6396
@thinleyjimmydorji6396 4 года назад
Thank you, Garett. I had this doubt since ages, a very great explanation. I would like more of this kind of video.
@garrettlovetv
@garrettlovetv 4 года назад
You got it, thanks for watching!
@isaacfinley11
@isaacfinley11 4 года назад
Suuuuuuper helpful. You should do more Flutter videos. Thanks Garrett.
@garrettlovetv
@garrettlovetv 4 года назад
You got it, thanks for watching!
@mortenha6998
@mortenha6998 4 года назад
Great video Garrett. I'm just learing Flutter and Buildcontext is a tricky concept to understand.
@sarojmaharjan3986
@sarojmaharjan3986 4 года назад
Super clear and very effective explanation! Thank you so much! I prefer the code to be written already beforehand here in this CONTEXT.
@garrettlovetv
@garrettlovetv 4 года назад
Great feedback, Thanks for watching!
@rayanfernandes2631
@rayanfernandes2631 3 года назад
Really good explanation dude... I understood context well enough!
@drsmiless
@drsmiless 4 года назад
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"
@owonubijobsunday4764
@owonubijobsunday4764 4 года назад
You earned a new subscriber :-) . Thanks for taking your time to explain. It meant a lot!
@garrettlovetv
@garrettlovetv 4 года назад
Thanks for the sub!
@jajasaria
@jajasaria 3 года назад
Save me time in my future dev. Thank u
@sachinsaini4972
@sachinsaini4972 4 года назад
Nicely explained bro Now I got what is really meant by buildcontext and the builder widget
@dhananjaygavali8266
@dhananjaygavali8266 3 года назад
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
@Ayrix06
@Ayrix06 3 года назад
Thanks Garret. Best explaination ever :) You made my day
@garrettlovetv
@garrettlovetv 3 года назад
Happy to help!
@akashbansal6216
@akashbansal6216 3 года назад
Need more for this kind of content..
@mauricio9783
@mauricio9783 4 года назад
The fu*** video i was looking for. Finnaly understanding all the shit i was doing without undestanding... thanks
@raulcattelan4506
@raulcattelan4506 3 года назад
Thanks for the explanation
@angryprogrammer7788
@angryprogrammer7788 3 года назад
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.
@teen18pk16
@teen18pk16 3 года назад
easily understandable and nice explanation bro
@garrettlovetv
@garrettlovetv 3 года назад
Glad to hear that
@lunaRdeltaY
@lunaRdeltaY 2 года назад
great explained!
@iansmith3301
@iansmith3301 3 года назад
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??
@vicyoslinuxofficial2607
@vicyoslinuxofficial2607 3 года назад
That was the best explanation that I've seen so far! Thank you so much! +1 subscribe!
@dip4040
@dip4040 4 года назад
you need more exposure.God!Your explanation is amazing.A 10 year old can understand.
@garrettlovetv
@garrettlovetv 4 года назад
Much appreciated, thank you!
@demosongsheetmusic
@demosongsheetmusic 2 года назад
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!
@user-wr4yl7tx3w
@user-wr4yl7tx3w Год назад
why does the change of the second context to buildReturnContext makes sense? Just trying to understand which context it is now.
@murshidahamed8317
@murshidahamed8317 3 года назад
yes very good explanation thanks ah lot
@higorgustavobarbosadasilva9624
@higorgustavobarbosadasilva9624 3 года назад
Uau...you are amazing....I'm from Brazil. Thanks a lot.
@garrettlovetv
@garrettlovetv 2 года назад
Thank you! 😃
@balaganesh3440
@balaganesh3440 4 года назад
Loved it...great explanation 💯
@garrettlovetv
@garrettlovetv 4 года назад
Glad you liked it!
@albievids
@albievids 4 года назад
Thank you. This was a nice explanation
@garrettlovetv
@garrettlovetv 4 года назад
Glad it was helpful!
@zond_amond
@zond_amond 4 года назад
Great video, thank you!
@sepphashemi4324
@sepphashemi4324 3 года назад
u explained amazing bro amazing
@garrettlovetv
@garrettlovetv 2 года назад
Glad it helped
@amirhoseinazhdarnezhad9168
@amirhoseinazhdarnezhad9168 4 года назад
It was helpful. Thank you
@silinhuang7395
@silinhuang7395 4 года назад
Thanks bro, great explaination!
@garrettlovetv
@garrettlovetv 4 года назад
Glad it was helpful!
@bartekpacia
@bartekpacia 4 года назад
Awesome explanation, thanks! :D
@gauravbhardwaj777
@gauravbhardwaj777 4 года назад
Great video and really hepls in understanding the concept .
@garrettlovetv
@garrettlovetv 4 года назад
Glad it was helpful!
@lakshandersagwal
@lakshandersagwal 4 года назад
Hey bro, can u help me regarding this ?
@anjannarla7846
@anjannarla7846 4 года назад
can you make a video which explains difference between foreach and map method with an example
@miladhesami6630
@miladhesami6630 2 года назад
Hello, please Volume it up or use a microphone to produce quality voice
@lifestylelifestyle
@lifestylelifestyle 3 года назад
thank u so much
@gishanabeysinghe977
@gishanabeysinghe977 3 года назад
Thanks it helped a lot
@CrazyOrdinal
@CrazyOrdinal 4 года назад
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
@garrettlovetv 4 года назад
I'm a really visual person so reading your comment I'm not sure. Is there anywhere I can see your code?
@CrazyOrdinal
@CrazyOrdinal 4 года назад
@@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
@sudhapriyashrivastava6808
@sudhapriyashrivastava6808 Год назад
How to use Scaffold.of(context).openDrawer(); to construct drawer?
@jy00952077
@jy00952077 4 года назад
so helpful,thank you !
@garrettlovetv
@garrettlovetv 4 года назад
Glad it was helpful!
@Leotobonilima
@Leotobonilima 3 года назад
boa me ajudou muito, thx from brazil!
@pfuhad3760
@pfuhad3760 4 года назад
Thank you
@aspiresun
@aspiresun 4 года назад
great video !!
@garrettlovetv
@garrettlovetv 4 года назад
Thanks, glad you liked it!
@octap182
@octap182 4 года назад
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.
@ritvijsaxena7201
@ritvijsaxena7201 4 года назад
Send your code. Post a link here
@shunmuagapriya9877
@shunmuagapriya9877 3 года назад
Flutter upload new video bro. It's so good
@harrywang6792
@harrywang6792 3 года назад
type it helps so much more
@aashishmanandhar5188
@aashishmanandhar5188 3 года назад
talking while writing the code side wise ( explaining it) would be more helpful, imo
@garrettlovetv
@garrettlovetv 3 года назад
Noted, thanks for the feedback!
@dennycad7859
@dennycad7859 3 года назад
thanks
@garrettlovetv
@garrettlovetv 2 года назад
Welcome
@chethansiqaandiostuff7365
@chethansiqaandiostuff7365 4 года назад
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!!!!
@spinoff2011
@spinoff2011 3 года назад
lights in the back are not cool 🤮
@rajatbaniya3833
@rajatbaniya3833 4 года назад
nerd
Далее
What is BuildContext | Decoding Flutter
12:23
Просмотров 1,1 тыс.
Top 10 Widgets every Flutter Developer should know!
17:17
What is BLOC in flutter
10:13
Просмотров 63 тыс.