Flutter Tutorial - Builder & BuildContext - Everyone should understand this - Deep Dive

  Рет қаралды 24,749

HeyFlutter․com

HeyFlutter․com

3 жыл бұрын

Here is everything you need to know about the BuildContext & the Builder Widget in Flutter.
Click here to Subscribe to Johannes Milke: kzbin.info...
- Source Code: github.com/JohannesMilke/buil...
- Buy My Courses: johannesmilke.teachable.com/p...
- Follow Twitter: intent/follow?ori...
Resources:
Todo App Tutorial: • Flutter Tutorial - 1/3...
Build A Chat App Tutorial: • Flutter Tutorial - Bui...
Social App Design: • Flutter Tutorial - Soc...
Tinder Clone UI Tutorial: • Flutter Tutorial - Tin...
-- JOIN THE CREW --
bit.ly/JohannesMilke
SHARE | SUBSCRIBE | LIKE FOR MORE VIDEOS LIKE THIS
*********
SOCIAL MEDIA: Follow Me :-)
- Twitter: intent/follow?ori...
- Linkedin: / johannesmilke
- Github: github.com/JohannesMilke
PLAYLISTS
- All Flutter Videos: • Flutter Tutorial - Tex...
- Widgets - Flutter: • Flutter Tutorial - Sel...
- Plugins - Flutter: • Local Push Notificatio...
- Animations - Flutter: • #12 - Flutter Advent -...
- Designs - Flutter: • Flutter - Screen Desig...
If you find this video useful, LIKE & SHARE this video to help other people who also learn Flutter :)
bit.ly/JohannesMilke
CREDITS
Copyright song "Corporate Technology" by scottholmesmusic.com
#Flutter #Tutorial #JohannesMilke
LIKE & SHARE & ACTIVATE THE BELL
Thanks For Watching :-)

Пікірлер: 66
@tuberk
@tuberk 3 жыл бұрын
Just perfect. If every video of yours is as clear as this one, you will be my saviour.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, Tuğberk! 🙂 Sure I try to get better and better over time simply check out my Flutter playlist: kzbin.info/www/bejne/founXmOwnNWol80
@bijayaadhikari442
@bijayaadhikari442 3 жыл бұрын
Brother, understanding the concept of builder context is so crucial that no other tutorial or article can explain like you did.
@FelexAndVirginia
@FelexAndVirginia 3 жыл бұрын
Hahaha 😂 😂 😂 😂 oooh my God why was struggling with Build context ? Because i didn't have a good teacher until now.... Thanks keep up the good work man hands to head salute
@pk0847
@pk0847 3 жыл бұрын
I waited for this video so long... and finally it's here Thanks a lot
@KnO1951
@KnO1951 2 жыл бұрын
You make these very easy to understand. Kudos!!
@3alemneUp
@3alemneUp Жыл бұрын
excellent explanation... after reading through a lot of articles without grasping the meaning behind context, I finally understood thanks to you Johannes, Thank you very much.
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad I could be of help, You are welcome علمني اب - 3alemneUP! 😊
@sankethb.k642
@sankethb.k642 2 жыл бұрын
I never really understood how context works before this. Thanks a lot!!
@shivarajsajjan3000
@shivarajsajjan3000 3 жыл бұрын
So nicely explained!! 🙏 Keep doing your great work always!! ❤️
@MustafaAliraqii
@MustafaAliraqii 3 жыл бұрын
That was crystal clear. Thank you very much.
@fayezalle43
@fayezalle43 2 жыл бұрын
Thank you. Very particular & clear explanation.
@sadunozer2241
@sadunozer2241 3 жыл бұрын
Seems I finally found someone I can listen to
@meetpanchal1393
@meetpanchal1393 3 жыл бұрын
I have My Interview today on flutter ,this helped me thanks!
@quentinklein1338
@quentinklein1338 2 жыл бұрын
Amazingly well explained
@Ayrix06
@Ayrix06 3 жыл бұрын
Johannes you made my day - Thanks a lot :)
@higorgustavobarbosadasilva9624
@higorgustavobarbosadasilva9624 2 жыл бұрын
You are right, every one should understand this!!!!
@oswaldoolea2889
@oswaldoolea2889 Жыл бұрын
very important subject out of the typical flutter tutorials, outstanding learning material! thanks.
@HeyFlutter
@HeyFlutter Жыл бұрын
You’re most welcome, Oswaldo Olea! 🙂
@peterbk364
@peterbk364 2 жыл бұрын
This should be studied sooner... i was facing the issue "At this point the state of the widget's element tree is no longer stable." so need to go back to basic.... thankyou Johannes sir for this awesome conceptual video
@leonardomaia7661
@leonardomaia7661 2 жыл бұрын
tk you so much!!! finally a good explanation!!
@lovenangelo5415
@lovenangelo5415 2 жыл бұрын
Very nice explanation
@spinoff2011
@spinoff2011 2 жыл бұрын
Great content. Thanks!!!
@TheAzmi009
@TheAzmi009 3 жыл бұрын
Great examples!
@mikoaj1954
@mikoaj1954 2 жыл бұрын
good explaination!
@MohitKumar-kh6mv
@MohitKumar-kh6mv 3 жыл бұрын
Awesome Awesome explanation
@abidhasansnigdho
@abidhasansnigdho Жыл бұрын
Crystal clear! Thanks man ❤
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, Abid Hasan!
@sumanpokharel1718
@sumanpokharel1718 3 жыл бұрын
thank you man!!subbed.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
This might help you :) Todo App Tutorial: kzbin.info/www/bejne/eYK9o2B9jcqSlbs Build A Chat App Tutorial: kzbin.info/www/bejne/rXmslH16hsd1fNU Social App Design: kzbin.info/www/bejne/hqengJqFmbqaobc Tinder Clone UI Tutorial: kzbin.info/www/bejne/rGLaoJmepNqneM0
@elmarcabbarl2312
@elmarcabbarl2312 3 жыл бұрын
do u know that you are the best. thank you for this explanation.
@toblamabor7072
@toblamabor7072 Жыл бұрын
Bro you are amazing thank you!!
@HeyFlutter
@HeyFlutter Жыл бұрын
You’re most welcome, Tobla Mabor! 🙂
@ryzzzin
@ryzzzin 2 жыл бұрын
thank you!
@MangJanong
@MangJanong 2 жыл бұрын
Hi, i love your videos, i learned about context clearly from you. Can you please make also a video about state management in the way you explain about context. Thank you and more power!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, SuperChainMan! Check out this video about state management: kzbin.info/www/bejne/omSun6iLotGlY9k&ab_channel=JohannesMilke
@shikharagarwal8769
@shikharagarwal8769 Жыл бұрын
Perfect, Just Perfect!!!
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, Shikhar Agarwal! 🙂
@abrorshamuradov1572
@abrorshamuradov1572 2 жыл бұрын
you are the best
@bezawadabharat3075
@bezawadabharat3075 3 жыл бұрын
Thanks bro
@surajsuryawanshi7835
@surajsuryawanshi7835 Жыл бұрын
great video.
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, Suraj Suryawanshi! 🙂
@ajithr1458
@ajithr1458 Жыл бұрын
at last I found a good explanation.
@HeyFlutter
@HeyFlutter Жыл бұрын
Great, Thank you AJITH R!
@sarathkumarg5220
@sarathkumarg5220 2 ай бұрын
❤ from India
@mkhwanazicebo4448
@mkhwanazicebo4448 Жыл бұрын
I just do not think there is anybody who explains flutter so great like this guy, aah why has google not hired you to join their flutter team man😟
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks, for your support, Mkhwanazi cebo! 🙂
@user-wr9ff4wl4o
@user-wr9ff4wl4o 2 жыл бұрын
thx! great!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
You are welcome, Роман Сергеевич!
@user-rp7xx7xo2z
@user-rp7xx7xo2z Жыл бұрын
amazing
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks, @user-rp7xx7xo2z! 🙂
@samuelsantos
@samuelsantos 3 жыл бұрын
Excellent explanation! The only thing I don't get is: If every widget has its own context, why this whole thing works? I mean in the first example why calling the "Scaffold.of" doesn't work if "Raisedbutton" has its own context? Or even more complex, imagine a "Container" and the "Raisedbutton" inside it. Shouldn't the "Scaffold.of" works since "Container" is above it and has "context"? I know it doesn't but don't know why. Thanks!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, Samuel! 🙂 We are never using the context of the RaisedButton since we cannot access it and it is inside of the RaisedButton Widget. The main point about BuildContext is that you need to use the BuildContext under the widget that you want to access such as demonstrated at 3:04. At 1:40 it is demonstrated why you cannot use the MainPage BuildContext since it is on top of the Scaffold in the widget tree, and therefore you cannot access the Scaffold.
@eNONO-ot4zh
@eNONO-ot4zh 3 жыл бұрын
thank Johannes. How to fix "Looking up a deactivated widget's ancestor is unsafe" once forever ? thank you in advance
@scholarship216
@scholarship216 3 жыл бұрын
thank for your teach but I have a question is can we name that is the builder function doing as link between the top and buttom
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you Scholar Ship! 🙂 The purpose of the Builder is only to supply you with a Build Context. Or what do you mean?
@lcarv20
@lcarv20 2 жыл бұрын
Nice video and explanation. However … you use opera, that surprised me the most xD. Best of Luck
@JakBeat
@JakBeat 2 жыл бұрын
How do I get the current context used? I'm triggering overlay notifications from a provider that needs current context in order to display overlay notifications he is managing
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Sara Ttbb! Follow this link: stackoverflow.com/questions/50246019/how-to-get-the-current-context-in-flutter I hope you will get your answer 🙂
@kavin.kumar2122
@kavin.kumar2122 3 жыл бұрын
please make some more bloc videos
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks Encyclopedia, sure I can however did you try already Riverpod: kzbin.info/www/bejne/bnmWk6qurdGUars This is a new & trendy state management
@BrendansReasons
@BrendansReasons 3 жыл бұрын
so Build is a shortcut to getting a closer context
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, Brendan Chatt! 🙂. You could learn more about flutter architecture here: flutter.dev/docs/resources/architectural-overview
@alexeyantonenko877
@alexeyantonenko877 2 жыл бұрын
Raised button seems to be deprecated now. So, I used the Elevated button instead. But here is an error with the Snackbar: "The method 'showSnackBar' isn't defined for the type 'ScaffoldState'." I tried ScaffoldMessenger.of(context).showSnackBar() and it works, but independently of "builder" exists of not for the scaffold
@alexeyantonenko877
@alexeyantonenko877 2 жыл бұрын
@@HeyFlutter Thanks a lot!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Alexey Antonenko! Follow this link: stackoverflow.com/questions/68011487/the-method-showsnackbar-isnt-defined-for-the-type-buildcontext I hope you will get your answer 🙂
Flutter Tutorial - Flutter Circle Avatar
9:22
HeyFlutter․com
Рет қаралды 17 М.
Understanding BuildContext in Flutter
12:26
Garrett Love
Рет қаралды 31 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 21 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 46 МЛН
What is BuildContext | Decoding Flutter
12:23
eTechViral
Рет қаралды 895
TOP 12 ListView Widgets | Flutter Tutorial
19:28
HeyFlutter․com
Рет қаралды 33 М.
Flutter Tutorial - InkWell - DeepDive & Advanced Shape
15:06
HeyFlutter․com
Рет қаралды 10 М.
Best 30 Flutter Widgets, Packages & Tips
5:11
Flutter Mapp
Рет қаралды 119 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 544 М.
BuildContext - Flutter
4:02
hungrimind
Рет қаралды 9 М.
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,3 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 955 М.