1

How can I get the height of a flutter widget? I think it's using key, but I don't know how. For example I want to get the height of a container, which will be in a stack to be able to put the padding of a list view and that at the initial moment it is under the container.

Aleja
  • 37
  • 1
  • 5

1 Answers1

0

If you’re wanting to get the height before the children widget are built, use a LayoutBuilder widget to wrap the descendants.

Otherwise you can also check the dev tools by using the Select Wifget tool and looking at the widget”s properties

lenz
  • 2,193
  • 17
  • 31