How to get height of a Widget using its GlobalKey in flutter

Posted by Jessica Taylor | Updated on

In this example, I will share how to get height of a Widget using its GlobalKey in flutter. You need to assign that key to a widget using super in the widget constructor. Not add it as a field. That Key also must be constant.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers