Flexible spacer that fills available space along the parent's main axis.
Equivalent to an empty VStack({ flex: 1 }, []). Use inside an HStack to push siblings apart, or inside a VStack for vertical spacing.
VStack({ flex: 1 }, [])
A flex container node that expands to fill remaining space.
// Push items to opposite ends of a rowHStack({ height: 1 }, [ Text("left"), Spacer(), Text("right"),]) Copy
// Push items to opposite ends of a rowHStack({ height: 1 }, [ Text("left"), Spacer(), Text("right"),])
Flexible spacer that fills available space along the parent's main axis.
Equivalent to an empty
VStack({ flex: 1 }, []). Use inside an HStack to push siblings apart, or inside a VStack for vertical spacing.