Wrap your Column
inside an Expanded
or SizedBox
(with some height
) like this:
Expanded(
child: Column(...)
)
OR
SizedBox(
height: 200, // Some height
child: Column(...),
)
Note that a
Flex
class or sub-class (likeColumn
) should not be child of otherFlex
classes, and their parent class needs to be of typeFlexible
(i.e. inherit it, likeExpanded
), else,Flex
-class gets unbounded (and remaining space cannot be calculated) which causes no direct issue till yet another child tries to calculate and/or fill space.