Widget createExpanded(Widget child) { if (innerFlex != null) { return Expanded(child: child, flex: innerFlex ?? 1); } return child; }