Spacer

Unlike TSpace, Spacer grows and shrinks dynamically to fill available space inside VStack or HStack containers.

Constructors

Spacer

Spacer creates a dynamic spacer that expands to fill available space.


Methods

MethodDescription
BackgroundColor(backgroundColor Color)BackgroundColor sets the background color of the spacer.
Border(border Border)Border sets the border of the spacer.
Frame(frame Frame)Frame sets the frame of the spacer, allowing control over its layout constraints.

Related

Tutorials