Wrap with Expanded and give flex.
Widget expandedFlex(int flex) => Expanded(flex: flex, child: this);