SizedBox widget according to condition
sizedBox(bool firstButton, bool lastButton, {double width = 8.0}) { return SizedBox(width: firstButton && lastButton ? width : 0.0); }