Flutter: Find Widget's Size & Position Using Render Object

แชร์
ฝัง

ความคิดเห็น • 55

  • @amrinjaffni4268
    @amrinjaffni4268 5 ปีที่แล้ว +4

    Great! I've always been using MediaQuery but that will return the screen size (in my case). But this video taught me how I can access each widget specifically using the key. Thanks a lot!

    • @rutvikrana512
      @rutvikrana512 3 ปีที่แล้ว +2

      You can use LayoutBuilder For That instead of using keys....

  • @ssiroma
    @ssiroma 4 ปีที่แล้ว

    I was using very complicated and error prone ways of getting the size of an image, this works great.Thanks a lot.

  • @rydmike
    @rydmike 5 ปีที่แล้ว +4

    Thanks, this was very informative, I've been wondering how this can be done in Flutter. Really helpful to see this example!

  • @RaymondAtivie
    @RaymondAtivie 5 ปีที่แล้ว +4

    what extension are you using to see your errors and suggesgtions inline in VScode

  • @abhinkrishnaka1206
    @abhinkrishnaka1206 4 ปีที่แล้ว +2

    Aaahh! You are a life saver man 🤩

  • @crazy-man
    @crazy-man 3 ปีที่แล้ว

    really cool explanation, you can get the size and position very easily

  • @jerinfrancis4509
    @jerinfrancis4509 5 ปีที่แล้ว +3

    WidgetBinding.instance will be very useful. Thanks for sharing that with us !

  • @rutvikrana512
    @rutvikrana512 3 ปีที่แล้ว +1

    How To Use It On ListView.Builder ?
    Because ListView.builder only builds child whenever it needed. And I want To Know each child size before rendering ....

  • @eugeneng
    @eugeneng 4 ปีที่แล้ว +1

    Hi, great video, but this seem not working if put the key into a Stack or Container (contains an image) within a Stack, how to make this work in the Stack widget?

  • @ashokkmr8758
    @ashokkmr8758 3 ปีที่แล้ว

    How to move the widget another position exactly with animation

  • @thechromicjourney2987
    @thechromicjourney2987 10 หลายเดือนก่อน

    Thanks for this man , but is it possible to keep tracking the location of that widget , for example if a widget is inside a scrollable list , then keep track of where the widget's location is , because it will change based on the scroll

  • @karimovitche
    @karimovitche 5 ปีที่แล้ว +2

    Great, thank you, I hope you make video about different types of key and how to use them.

  • @nanduviswanathan4828
    @nanduviswanathan4828 4 ปีที่แล้ว

    bro, how to do lazy loading in sqflite database.?

  • @vishvamurthy8089
    @vishvamurthy8089 3 ปีที่แล้ว

    For me Error Showing "Expected a value of type 'RenderBox', but got one of type 'Null'"

  • @kamikozzz
    @kamikozzz 4 ปีที่แล้ว +1

    Oh my gush, thanks a lot, great guy!

  • @mohamedkhattab7002
    @mohamedkhattab7002 4 ปีที่แล้ว

    Hello friend can I get the size of the widget without widget binding can I put the function after build function

  • @aldisseia
    @aldisseia 16 วันที่ผ่านมา

    Error:
    A value of type 'RenderObject?' can't be assigned to a variable of type 'RenderBox'.
    Try changing the type of the variable, or casting the right-hand type to 'RenderBox'

  • @DeivisonOliver
    @DeivisonOliver 5 ปีที่แล้ว +1

    Please, what's your plugin that shows error in red on the line?

    • @HelloCodepur
      @HelloCodepur  5 ปีที่แล้ว +1

      It's Error Lens

    • @DeivisonOliver
      @DeivisonOliver 5 ปีที่แล้ว

      @@HelloCodepur Thank you! Please, make a new video about your updated extensions for VS Code.

  • @Bakasta170
    @Bakasta170 3 ปีที่แล้ว

    bro can you please tell me where do I find this kind of deep info about flutter

  • @michaeljohndequina5184
    @michaeljohndequina5184 5 ปีที่แล้ว

    Thanks for sharing. it is very useful especially when you want to build a responsive design. Thanks again .

  • @pembatamang8233
    @pembatamang8233 4 ปีที่แล้ว

    it worked but I'm having a hard time applying the size to another widget how can that be done?
    Like calling size.width as the width of a container.

  • @mariusschroeter
    @mariusschroeter 5 ปีที่แล้ว

    How can I set a Positioned with the Widget Size we get in this video?

  • @mohamedkhattab7002
    @mohamedkhattab7002 4 ปีที่แล้ว

    hello there is this code works only with stateful widget or stateful and statless widget ?

  • @mahmudulhasanshifat4671
    @mahmudulhasanshifat4671 5 ปีที่แล้ว +1

    Can you please make a video about custom paint, curved paint!!

  • @marcosradix1
    @marcosradix1 5 ปีที่แล้ว +1

    What is the application that you use to record you screen on Mac?

  • @mohammedektelat1489
    @mohammedektelat1489 5 ปีที่แล้ว

    Can make full example for drawing on image with scaling and resize

  • @jhons0ns
    @jhons0ns 5 ปีที่แล้ว +1

    How to activate these lines in the code like a tree structure?

    • @raydragon799
      @raydragon799 4 ปีที่แล้ว

      th-cam.com/video/VHhksMa2Ffg/w-d-xo.html

  • @zireael9797
    @zireael9797 5 ปีที่แล้ว

    This was one helluva helpful tutorial.

  • @Izavincy
    @Izavincy 5 ปีที่แล้ว +1

    I wanna learn more...

  • @serkanneo1073
    @serkanneo1073 5 ปีที่แล้ว +2

    we are waiting ----- > flutter+graphql (server express+graphql) complete project

  • @LLTletslearn
    @LLTletslearn 5 ปีที่แล้ว

    Dear Sir,
    you are amazing at teaching.
    I request you to make a video on firebase dynamic links plugin for both android and iOS devices.
    I have implemented it in my app . It is woking fine on android but not working on iOS .
    So I think your tutorial will be helpful to me.
    Thank you.

  • @AbrasivMusic
    @AbrasivMusic 4 ปีที่แล้ว

    Super helpful, thank you.

  • @jatinrajput5504
    @jatinrajput5504 5 ปีที่แล้ว +1

    Bro can you make a video on how to update content of app like list or add something in list.. without updating the app ...

    • @Izavincy
      @Izavincy 5 ปีที่แล้ว

      That's an asynchronous method...

  • @home-workout-staycool
    @home-workout-staycool ปีที่แล้ว

    why we need size of widget

  • @findsarfaraz
    @findsarfaraz 3 ปีที่แล้ว

    Not working for me.

  • @chachu2955
    @chachu2955 5 ปีที่แล้ว

    Media query also help this position

  • @igorbeaver4692
    @igorbeaver4692 4 ปีที่แล้ว

    Hm. It seems there is more than 20px from the left side of the screen to the text

  • @yangvigo
    @yangvigo 5 ปีที่แล้ว

    Great video bro.

  • @rikiyanuar547
    @rikiyanuar547 5 ปีที่แล้ว

    thank you very much

  • @ajeethrajas7282
    @ajeethrajas7282 4 ปีที่แล้ว

    thanks

  • @dheerajreddy2247
    @dheerajreddy2247 5 ปีที่แล้ว

    Which extension did you use to get the lines of the UI?
    prnt.sc/p2d4d3

  • @nshusa99
    @nshusa99 5 ปีที่แล้ว

    Tank you