Spacer¶
An invisible layout composable that expands to fill available space.
Spacer is the idiomatic way to push siblings apart inside net.kernelpanicsoft.archie.gui.layout.Row or net.kernelpanicsoft.archie.gui.layout.Column arrangements. By default it stretches to consume all remaining space in its parent.
Example¶
Row {
Text(Component.literal("Left"))
Spacer() // pushes "Right" to the far end
Text(Component.literal("Right"))
}
Parameters¶
- modifier: Additional modifiers; most commonly used to constrain the spacer to a fixed size with
Modifier.size(width, height).