setVerticalSizeBox method

Widget setVerticalSizeBox(
  1. double height
)

Creates a vertical spacing widget with fixed height.

Unlike addVerticalSpace which uses responsive sizing, this method creates a SizedBox with an exact height value.

Parameters:

  • height: The exact height in logical pixels.

Returns a SizedBox with the specified height.

Example:

setVerticalSizeBox(20.0); // Exactly 20 pixels of vertical space

See also:

Implementation

Widget setVerticalSizeBox(double height) {
  return SizedBox(
    height: height,
  );
}