Sized Box
Last updated
Last updated
It's a basic container with a defined size. You can utilize it to establish size limitations for the child widget, create space between two widgets by inserting an empty SizedBox, or achieve other layout purposes.
To include the Sized Box widget, you can either select it from the "Add Widget" button or directly add it from the widget tree.
The width property of the Sized Box widget in Flutter enables you to define the horizontal dimension, thereby regulating the width of the space between two widgets.
The height property of the Sized Box widget in Flutter allows you to establish the vertical dimension, thereby controlling the height of the space between two widgets.