I have a Column with two elements A and B. A has a fixed height and B is supposed to fill the rest of the screen. Within B I want to make layout decisions based on the height of B via a LayoutBuilder()
.
If I using the Column()
-widget normally the BoxConstraint for B is given as infinitive. Is there a good pattern for this problem that gives a finite height for B?
Use
Mediaquery
Size size = MediaQuery.of(context).size;
on Container B
height: size.height - containerAFixedHeight