Ask the assistant
0/400
Your question is processed by an AI service and kept to improve answers. Do not enter personal data.

    Spacer

    An invisible flexible element that takes up the available space in a Row or Column. Like Expanded with no content.

    Type: leaf

    Row
      Text "Left"
      Spacer
      Text "Right"

    Parameters

    Parameter Type Default Description
    flex int 1 Stretch factor

    Examples

    Buttons at both edges

    Row
      ElevatedButton onPressed:"navigate:/back"
        Text "Back"
      Spacer
      ElevatedButton onPressed:"navigate:/next"
        Text "Next"

    See also