Understanding BuildContext in Flutter

  Рет қаралды 32,009

Garrett Love

Garrett Love

Күн бұрын

Пікірлер: 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.
@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
@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
@taimoorghafar1868
@taimoorghafar1868 2 жыл бұрын
Now I can explain BuildContext to anyone 😎😎 Thank you for such great explaination 💗
@tadaspetra
@tadaspetra Жыл бұрын
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!
@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.
@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
@lezlee3137
@lezlee3137 4 жыл бұрын
this is it! kind of tutorials we missing ...thank you and please we need more
@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.
@azackmatoff2570
@azackmatoff2570 4 жыл бұрын
This might be the best tutorial/explanation I've seen... You should definitely keep making videos on different topics! thanks man!
@isaacfinley11
@isaacfinley11 4 жыл бұрын
Suuuuuuper helpful. You should do more Flutter videos. Thanks Garrett.
@garrettlovetv
@garrettlovetv 4 жыл бұрын
You got it, thanks for watching!
@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!
@jajasaria
@jajasaria 3 жыл бұрын
Save me time in my future dev. Thank u
@raulcattelan4506
@raulcattelan4506 3 жыл бұрын
Thanks for the explanation
@mortenha6998
@mortenha6998 3 жыл бұрын
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!
@lunaRdeltaY
@lunaRdeltaY 2 жыл бұрын
great explained!
@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"
@akashbansal6216
@akashbansal6216 3 жыл бұрын
Need more for this kind of content..
@teen18pk16
@teen18pk16 3 жыл бұрын
easily understandable and nice explanation bro
@garrettlovetv
@garrettlovetv 3 жыл бұрын
Glad to hear that
@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
@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.
@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!
@rayanfernandes2631
@rayanfernandes2631 3 жыл бұрын
Really good explanation dude... I understood context well enough!
@sachinsaini4972
@sachinsaini4972 4 жыл бұрын
Nicely explained bro Now I got what is really meant by buildcontext and the builder widget
@Ayrix06
@Ayrix06 3 жыл бұрын
Thanks Garret. Best explaination ever :) You made my day
@garrettlovetv
@garrettlovetv 3 жыл бұрын
Happy to help!
@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! 😃
@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??
@pfuhad3760
@pfuhad3760 3 жыл бұрын
Thank you
@mauricio9783
@mauricio9783 3 жыл бұрын
The fu*** video i was looking for. Finnaly understanding all the shit i was doing without undestanding... thanks
@lifestylelifestyle
@lifestylelifestyle 3 жыл бұрын
thank u so much
@sepphashemi4324
@sepphashemi4324 3 жыл бұрын
u explained amazing bro amazing
@garrettlovetv
@garrettlovetv 2 жыл бұрын
Glad it helped
@balaganesh3440
@balaganesh3440 4 жыл бұрын
Loved it...great explanation 💯
@garrettlovetv
@garrettlovetv 4 жыл бұрын
Glad you liked it!
@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!
@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.
@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!
@zond_amond
@zond_amond 4 жыл бұрын
Great video, thank you!
@albievids
@albievids 4 жыл бұрын
Thank you. This was a nice explanation
@garrettlovetv
@garrettlovetv 4 жыл бұрын
Glad it was helpful!
@vicyoslinuxofficial2607
@vicyoslinuxofficial2607 3 жыл бұрын
That was the best explanation that I've seen so far! Thank you so much! +1 subscribe!
@amirhoseinazhdarnezhad9168
@amirhoseinazhdarnezhad9168 3 жыл бұрын
It was helpful. Thank you
@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 ?
@silinhuang7395
@silinhuang7395 4 жыл бұрын
Thanks bro, great explaination!
@garrettlovetv
@garrettlovetv 4 жыл бұрын
Glad it was helpful!
@anjannarla7846
@anjannarla7846 4 жыл бұрын
can you make a video which explains difference between foreach and map method with an example
@sudhapriyashrivastava6808
@sudhapriyashrivastava6808 Жыл бұрын
How to use Scaffold.of(context).openDrawer(); to construct drawer?
@bartekpacia
@bartekpacia 4 жыл бұрын
Awesome explanation, thanks! :D
@gishanabeysinghe977
@gishanabeysinghe977 3 жыл бұрын
Thanks it helped a lot
@miladhesami6630
@miladhesami6630 2 жыл бұрын
Hello, please Volume it up or use a microphone to produce quality voice
@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
@harrywang6792
@harrywang6792 3 жыл бұрын
type it helps so much more
@jy00952077
@jy00952077 4 жыл бұрын
so helpful,thank you !
@garrettlovetv
@garrettlovetv 4 жыл бұрын
Glad it was helpful!
@aspiresun
@aspiresun 4 жыл бұрын
great video !!
@garrettlovetv
@garrettlovetv 4 жыл бұрын
Thanks, glad you liked it!
@dennycad7859
@dennycad7859 3 жыл бұрын
thanks
@garrettlovetv
@garrettlovetv 2 жыл бұрын
Welcome
@Leotobonilima
@Leotobonilima 3 жыл бұрын
boa me ajudou muito, thx from brazil!
@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
@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!
@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
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 13 МЛН
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 70 МЛН
The Joker kisses Harley Quinn underwater!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 42 МЛН
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,1 МЛН
How Flutter renders Widgets
26:50
Flutter
Рет қаралды 188 М.
What I ask Junior and Senior Flutter Developers in a Job Interview
12:19
Synchronous BuildContexts | Decoding Flutter
6:15
Flutter
Рет қаралды 45 М.
Top 10 Must Know Widgets In Detail for Flutter Developers | Flutter Tutorial
1:09:13
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 46 М.
BuildContext - Flutter
4:02
hungrimind
Рет қаралды 9 М.
Learn Flutter Life Cycle In 10 Minutes
10:02
Robert Brunhage
Рет қаралды 74 М.
tag her 🤣💕 #miniphone #smartphone #iphone #samsung #fyp
0:11
Which phone do you have?
0:33
Adhemz
Рет қаралды 3,3 МЛН
МУЖИЦКИЙ КОМП
1:00
VA-PC
Рет қаралды 431 М.
Data recovery from MicroSD using PC3000 Flash & Spider Board 😎
1:01
Игровые ПК за 20 и 40 тысяч рублей
27:07
Ремонтяш
Рет қаралды 275 М.
Неофициальная работа
0:57
Тони
Рет қаралды 2,4 МЛН