SizedBox
Overview
Use SizedBox to set a fixed width and height, or to create a spacer between two widgets. For example, put an 8px gap between two buttons.
Properties
| Property | Description | Value | Default |
|---|---|---|---|
Size (width · height) | Fixes the width and height of the box that wraps the child widget. Both are grouped into a single Size item, so you set width and height together. Leave one side unset and that axis follows the child's size. | Number (pixels, 0 or greater) - width and height | Not set |