Sized Box
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.
Adding Sized Box To Your Project
Add Sized Box Widget To your Project
To include the Sized Box widget, you can either select it from the "Add Widget" button or directly add it from the widget tree.
Sized Box Widget Properties
1. Width
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.
2. Height
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.
Last updated