# Spacer

> This page is about FlutterFlow Studio (the visual builder), not FlutterFlow (the app builder you use by describing your app).

URL: https://docs.flutterflow.io/resources/ui/widgets/built-in-widgets/spacer

The Spacer widget fills available space in a Row or Column. Place it before, between, or after other children to control where the empty space appears.

The **Spacer** widget fills available space in a **Row** or **Column**. Place it before, between, or after other children to control where the empty space appears.

A Spacer filling the available width in a Row and the available height in a Column.

To distribute remaining space without a Spacer, set the parent Row or Column's **Main Axis Alignment** to **Space Between**, **Space Around**, or **Space Evenly**. When you add a Spacer, it consumes the remaining space, so these alignment options have no visible effect.

Add a Spacer as a child of a Row or Column. Its only setting, **Flex**, accepts a positive whole number and defaults to `1`.

<figure>
    ![Two Spacer widgets in a Row, one set to Flex 3 and the other to Flex 1.](https://docs.flutterflow.io/assets/images/spacer-widget-457ac9a558b9e8844c4cb3e46122937a.png)
  <figcaption>Two Spacers in a Row</figcaption>
</figure>

The two Spacers divide the Row's remaining space in a **3:1 ratio**: the Spacer with Flex `3` takes three times as much space as the one with Flex `1`.

For a walkthrough, watch the [Spacer video tutorial](https://www.youtube.com/watch?v=7FJgd7QN1zI).
