LayoutBuilders are the best way to know what the height of your widgets is.
Now, if you need such information before returning the build method, then you'd have to use a MediaQuery (video for that here: • Flutter - How To Get A Widget's Size ... ).
But if you'd just like to know a widget's dimensions after the return method, then the LayoutBuilder will be your best friend!
Simply make it the CHILD of whatever widget it is that you want to know the dimensions of and that's it!
00:00 - Intro
00:32 - Code Overview
01:17 - Using The LayoutBuilder
04:50 - Conditionals With LayoutBuilder
05:43 - Final Conclusions & Advice
06:30 - Like & Subscribe
06:38 - Flutter Mentor Out
#flutter #layoutbuilder #responsive
Credits:
OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library • Mitsubachi – Smith The Mister (No Cop...
On this page of the site you can watch the video online Flutter - The LayoutBuilder (App Responsiveness + Know The Width/Height of A Widget) with a duration of hours minute second in good quality, which was uploaded by the user Flutter Mentor 17 June 2021, share the link with friends and acquaintances, this video has already been watched 6,318 times on youtube and it was liked by 153 viewers. Enjoy your viewing!