The size in the cross axis.
double crossAxisSize(Axis axis) => axis == Axis.horizontal ? height : width;