Home > OS >  How to calculate the remaining size of the widget from flutter?
How to calculate the remaining size of the widget from flutter?

Time:11-13

I created a flutter widget in order Container ~> Columns [ Containers Expanded ~> Stack ~> MaterialApp ~> Scaffold , Container( ], I tried with the media query size height but got the result screen height throughout the app,

how do i get the rest of the child stack height?

CodePudding user response:

Use the LayoutBuilder widget. It gives the property constraints, which is the available constraints for that particular level.

  • Related