BuildContext?! | Decoding Flutter

Поділитися
Вставка

КОМЕНТАРІ • 125

  • @hemanthkotagiri8865
    @hemanthkotagiri8865 3 роки тому +169

    I've never seen a community so passionate to educate the world in a simple, fun way possible than Flutter team. You guys are awesome. Keep it up, I've chosen flutter for all my application development stuff and I will never go back to anything.

  • @trends.matter
    @trends.matter 3 роки тому +82

    Flutter community is growing day by day :)

    • @deepmeyt
      @deepmeyt 3 роки тому +5

      WE SHALL CONQUER THE REALMS OF FRONTEND DEVELOPMENT

  • @givolimyerukim
    @givolimyerukim Рік тому +2

    I just rewatched this 3 times, it's that much that I enjoyed this explanation.
    My mind in blown, and my mood is elated

  • @AshwinKumarOSE
    @AshwinKumarOSE 2 роки тому +9

    I absolutely love your explanations Andrew. You make it so easy to understand the filter concepts.

    • @flutterdev
      @flutterdev  2 роки тому +1

      Thank you for your kind message of support, Ashwin! Thanks for watching 😎
      Be sure to catch more Decoding Flutter episodes here: goo.gle/DecodingFlutter

  • @DigitalDesignET
    @DigitalDesignET 3 роки тому +2

    Just wanted to say thank you for all hard work, from Ethiopia.

  • @avinandanganguly4466
    @avinandanganguly4466 3 роки тому +3

    Brother you are amazing. Only a sensational engineer can have such exceptional clarity on such complicated subjects

    • @parametr
      @parametr 2 роки тому

      That's not an engineer, it's a developer advocate. Very different thing

  • @ilkercat7269
    @ilkercat7269 Рік тому +4

    Best explanation of the build context. Great stuff.

  • @mhmzdev
    @mhmzdev 3 роки тому +4

    Who so ever is doing those motion graphics, just nailed it! 🔥

  • @maxeem3596
    @maxeem3596 3 роки тому +1

    Andrew Fitz, thank you!
    The Decoding Flutter series with you are amazing.

  • @viditkhanna3721
    @viditkhanna3721 3 роки тому +22

    So whenever we pass a context to a widget, we are actually passing the element of that widget, so it can know where it is at?

    • @filiphracek
      @filiphracek 3 роки тому +11

      Exactly!

    • @dilshan3372
      @dilshan3372 3 роки тому +13

      01. Firstly Framework call constructor of that widget class.
      02. Secondly framework call the "createElement()" method. And this method will return element of that widget to framework.
      03.Thirdly when framework calling "build(context)" method, it will pass previously created element object as a argument for context parameter.
      So now we can use context(element object's) properties and methods inside the build() method. (Eg:- accessing ancestor widget / for makimg dependencies with ancestor inheritedWidget.

    • @xuantung8660
      @xuantung8660 3 роки тому +1

      ​@@dilshan3372 Could you explain why the framework need 3 steps like that and not the other way?

    • @dilshan3372
      @dilshan3372 3 роки тому

      @@xuantung8660 I dont know what you mean by other way.

    • @xuantung8660
      @xuantung8660 3 роки тому

      ​@@dilshan3372 Example, why don't we create element as a property of widget, and build() don't need context parameter because we can access it by widget.context?

  • @Mindstream_
    @Mindstream_ Рік тому

    Wow, love these tutorials. Thanks so much.
    My brain is constantly exploding on my way learning flutter. Having had a 15 year break from c++ to now diving deep into this advanced language isn't always easy. But oh so mind blowing.

  • @saliouseck4263
    @saliouseck4263 2 роки тому +1

    it 's so clear i had difficulty to understand elementTree but in this video it's clear for me thank's very much.

    • @flutterdev
      @flutterdev  2 роки тому

      We're glad this helped clear things up for you!
      Make sure to check out the rest of our Decoding Flutter series for anything else that may be giving you trouble: goo.gle/DecodingFlutter

  • @hyungtaecf
    @hyungtaecf 3 роки тому +10

    Element implements BuildContext 🤯

    • @RedAlpha58
      @RedAlpha58 3 роки тому +1

      🤣 my reaction too

    • @dilshan3372
      @dilshan3372 3 роки тому

      Yes, The BuildContext interface is used to discourage direct manipulation of Element objects

  • @warperone
    @warperone 3 роки тому +6

    love these kind of bite size updates...would be good if they were appended with a "deeper" dive view of the topic ... in this case really unpack via examples and animations how it really works

  • @smiljantukic
    @smiljantukic 2 роки тому +2

    Thank you very much for such amazing documentation. I have started to learn Flutter for my private project and videos like this helps a lot.

    • @flutterdev
      @flutterdev  2 роки тому +1

      Thank you for the excellent feedback, Smiljan! Don't forget you can view more Decoding Flutter videos here: goo.gle/DecodingFlutter

  • @abraham7966
    @abraham7966 2 роки тому +1

    I'm coming from React Native. Giving Flutter a chance. Pretty great video! Flutter's documentation is unmatched.

    • @flutterdev
      @flutterdev  2 роки тому +1

      That's awesome to hear, Abraham!
      Welcome to the Flutter community! We're happy to have you here 👋

    • @abraham7966
      @abraham7966 2 роки тому

      @@flutterdev Well thanks! See? I never get an "official" reply from React Native. Nah, this is too good!! Where is the catch? Haha, I think I will end up rewriting my RN apps very soon!!

  • @tejasmd8143
    @tejasmd8143 3 роки тому

    Now that's why we say, "Enough talk, show the code".
    It's literally the best way to explain.

  • @seatconnect224
    @seatconnect224 Рік тому

    it was my n-th video about trees and finally I get it, thank you!

  • @hybrayhem
    @hybrayhem 3 роки тому +3

    this short series are great

  • @dampfwatze
    @dampfwatze 3 роки тому +2

    I like the Lego ship in the background!

  • @ayushchothe8785
    @ayushchothe8785 3 роки тому +5

    Make a video on explaining RenderBox

  • @talhakhantk8022
    @talhakhantk8022 3 роки тому +7

    Explain about border property in decoration as well I am very confused what kind of Widget it takes

  • @CarloDotLog
    @CarloDotLog 3 роки тому +2

    Great! I love this series! Thank you.

  • @GET_1T_D0NE
    @GET_1T_D0NE 3 роки тому +1

    Thanks for the information about 'What is Element type ?'... Answer-Element is a BuildContext type

  • @rifaldhiaw
    @rifaldhiaw 3 роки тому

    You know what. The flutter team is AWesome!!

  • @nahomgebreamlak1675
    @nahomgebreamlak1675 3 роки тому

    I have a question when u will add full support for smart Tv

  • @prasaddhend5500
    @prasaddhend5500 3 роки тому

    Can i use the different google play console account for uploading my project on playstore
    I have to impliment in app purchase and ads in my project
    But i have a google play console account with different gmail address and my project is with different gmail account with firebase ?

  • @ulyssis
    @ulyssis Рік тому

    so, is BuildContext the silve bullet to creat a widget at any place?

  • @postedactive
    @postedactive 3 роки тому +3

    So BuildContext is exactly what I thought it was lol, but it's good to learn 😀

  • @이창환-v1x
    @이창환-v1x 3 роки тому

    So easy and intuitive explanation!

  • @samldev
    @samldev 3 роки тому

    Cool to get a quick peek under the hood. Great video!

  • @adrianchacon335
    @adrianchacon335 3 роки тому

    If I need to know when the phone is shutting down could I do in flutter?

  • @sumerlakhera5257
    @sumerlakhera5257 3 роки тому

    When we open any app then for the first time when home page arrive it shows a short tutorial that teach u how app work I want to implement this function in my app but i don't know how to do , can u tell me Function name Please....(I am not telling about splash screen ) I want overlay on app

  • @tobyying1955
    @tobyying1955 2 роки тому +2

    Manipulating Elements directly is too risky. Users can call and modify any of the Element's properties and methods.
    To avoid this, the Element base class implements the abstract BuildContext class so that users can only use the methods and properties BuildContext allows, which is a good design idea. --This is what I think.

  • @bilalrabbi6401
    @bilalrabbi6401 3 роки тому

    But why it is not available in FCM background handler..

  • @JakBeat
    @JakBeat 2 роки тому

    How do i get the current content of the app?

  • @philosophia5577
    @philosophia5577 Місяць тому

    Still useful in 2024, love flutter!!!!

  • @guywhocodes
    @guywhocodes 8 місяців тому

    sounds good. a nice explaination.

  • @mibi2007
    @mibi2007 3 роки тому

    Hi Flutter team, could you make a video to explain the scrolling in Flutter, I am confuse with using them, and they are too many Classes with Scroll on it's name. Thank you

  • @CarlosWashingtonMercado
    @CarlosWashingtonMercado Рік тому

    So, every widget is a backpack that can in turn hold an (potentially) infinite numbers of backpacks?

  • @venkatareddy6122
    @venkatareddy6122 3 роки тому

    Super . Nice Job Flutter TEam

  • @budhiono7740
    @budhiono7740 2 роки тому +3

    Sorry, since I'm still a flutter newbie, I still dont understand it.
    How about simple explanation with html approach, eg. if a widget is an html element, what is buildContex or context ?
    Thank in advance

  • @darshanpandya7778
    @darshanpandya7778 3 роки тому

    Information = Gooood
    IDE Theme = Baaad 😗

  • @amans6504
    @amans6504 3 роки тому

    on one side i do mineal calculations with c and c++, then manupulating dom with js, all makes sense except when this context, widget tree come out of nowhere, i've learned how to use this but still lacking the context, i wanna know what's actually happening behind the scene, why these frameworks come out with there own rules, i'm doomed

  • @8nehe
    @8nehe 3 роки тому

    Awesome explanation

  • @ajayraja6636
    @ajayraja6636 Рік тому

    Is createElement like React.createElement in Reactjs?

  • @mangkepweng3741
    @mangkepweng3741 3 роки тому

    I LOVE THE MUSIC .... WOWOW ...

  • @GAMEOLOGIST
    @GAMEOLOGIST 3 роки тому

    Nice explanation !!

  • @Smart-workers.VS.Hard-workers
    @Smart-workers.VS.Hard-workers 2 роки тому +1

    Amazing bro

    • @flutterdev
      @flutterdev  2 роки тому

      We're so glad you enjoyed this, Buddhika!
      Be sure to catch even more Decoding Flutter episodes here→ goo.gle/DecodingFlutter
      Happy Fluttering 👍

  • @StingSting844
    @StingSting844 3 роки тому +1

    This should be the first lesson after hello world in flutter.

  • @consciousmayank
    @consciousmayank 3 роки тому

    Hi, a great video. I was asked about buildContext in an interview. Hope I would have known this earlier. ☺️. Just a random question out of the "Context", how to show the done button in number keyboard in iOS? This can be the next video... or you can point me to a certain direction.

  • @hboleto
    @hboleto 3 роки тому

    Always with fully helpfull hints

  • @junama10
    @junama10 Рік тому

    I want that playmobil ship

  • @FlutterMentor
    @FlutterMentor 3 роки тому

    Great explanation!

  • @ArnabGuides
    @ArnabGuides 3 роки тому

    this was really awesome

  • @mohammadalrefaai-games8034
    @mohammadalrefaai-games8034 3 роки тому

    Thanks that's very useful ☺️

  • @noahredrock9159
    @noahredrock9159 Рік тому

    good but why is it that flutter doesn't handle this in the background somehow without us having to pass it around?

  • @bharathkrish6743
    @bharathkrish6743 3 роки тому

    Explained very well..

  • @iansmith3301
    @iansmith3301 2 роки тому +1

    A real world example would be really beneficial to include with this video. The context here is still confusing for new comers.

  • @meierlink2589
    @meierlink2589 3 роки тому +5

    Ну теперь-то всё понятно!!!!!!!!!!!!!

  • @DanFlorio
    @DanFlorio 3 роки тому

    Coming from a Flash/Flex background "context" feels like "this".

  • @physics.matter
    @physics.matter 3 роки тому +1

    Thanks andrew:)

  • @victormanuelsantosmartinez6129
    @victormanuelsantosmartinez6129 3 роки тому

    Amazing!!!! 👏🏾

  • @azackmatoff2570
    @azackmatoff2570 3 роки тому

    Didn't watch the whole video, but context is the address of the either stateful or stateless widgets.

  • @baraaaljabban9058
    @baraaaljabban9058 3 роки тому

    Good to know 😁👌

  • @MdSiam-kw5ox
    @MdSiam-kw5ox 2 роки тому +1

    I have NO idea what you have just said.
    What is BuildContext?

  • @akshaysrivastavaofficial
    @akshaysrivastavaofficial 3 роки тому

    Love flutter ♥️

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 3 роки тому +2

    most difficult thing in fluter :(

  • @javalover446
    @javalover446 3 роки тому

    Flutter is awesome

  • @LeoPorras
    @LeoPorras 2 роки тому

    Thanks a lot

  • @joelpaul8650
    @joelpaul8650 4 місяці тому

    funny how flutter is googles, youtube is googles, so this video is googles and still the captions say dark for dart.

  • @bezbazz131
    @bezbazz131 3 роки тому +1

    Lets Flutter🍴⚡

  • @peruviancode1360
    @peruviancode1360 3 роки тому

    Spanish subs please. Nice video

  • @bankfraud1498
    @bankfraud1498 3 роки тому

    Would I wrong by saying this is like having multiple DOMs?

  • @salaheddine6556
    @salaheddine6556 3 роки тому

    Heh so what about Getx it doesn't use context

  • @prashantnigam6698
    @prashantnigam6698 3 роки тому

    anyone see dash outside the window it's too funny

  • @thefamousdjx
    @thefamousdjx 3 роки тому

    Nicee

  • @berozgaarengineer3999
    @berozgaarengineer3999 3 роки тому

    flutter webrtc tutorial 🙏🙏

  • @exonent
    @exonent 3 роки тому

    Finally!!!!!!

  • @chhinsras
    @chhinsras 2 роки тому

    Flutter Grow, Beard Grow.

  • @Thilina4321
    @Thilina4321 3 роки тому +1

    ❤😀

  • @pnemonic
    @pnemonic 3 роки тому

    yes, but what IS IT?

  • @fansyveny
    @fansyveny 2 роки тому

    As someone who just started learning flutter, I understood nothing. thanks

  • @kevinarley6958
    @kevinarley6958 Рік тому

    No entendí... 😔

  • @willm127
    @willm127 3 роки тому +2

    I still don’t understand what ‘context’ is 😪

    • @filiphracek
      @filiphracek 3 роки тому +5

      It's another word for "surroundings". By having access to `context`, your build method can learn stuff like:
      a) what is my parent widget?
      b) how big am I?
      c) is any of the widgets above me a Theme widget?

    • @willm127
      @willm127 3 роки тому

      @@filiphracek a response from the man himself! Thank you! That does help!!

  • @David-im1fp
    @David-im1fp Рік тому

    Element api does not have parent and children. Thanks.

  • @juanpumpkinpie6550
    @juanpumpkinpie6550 3 роки тому +1

    bored and over acting videos

  • @henrytan5707
    @henrytan5707 2 роки тому

    I think the buildcontext is one major hindrance that prevents people from adopting flutter.

  • @tantanb2
    @tantanb2 3 роки тому

    I don't like flutter build web, it 's terrible!

  • @freakout6764
    @freakout6764 3 роки тому

    First

  • @parametr
    @parametr 2 роки тому

    I'm worried.
    - "OMG this is a method, that's so weird!"
    Is this the level they expect from people building apps?