Let's say I have a Stack widget and within that I have a bunch of Containers. The last widget of the Stack is a Text widget and I want to set the text to the height of the Stack (until the Text widget).
I've tried using a LayoutBuilder. So, I wrapped the last Text widget with a LayoutBuilder and tried to set the height to constraints.maHeight, but for some reason it gives me my screen size's height instead.
Any help is greatly appreciated.