How can I get the height of a widget?
To get the size/position of a widget on screen, you can use GlobalKey to get its BuildContext to then find the RenderBox of that specific widget, which will contain its global position and rendered size. There is just one thing to be careful of: That context may not exist if the widget is not rendered. …