add Flexible to parent widget
Widget flexible({flex = 1, FlexFit? fit}) { return Flexible(child: this!, flex: flex, fit: fit ?? FlexFit.loose); }