Skip to main content

Row

Function Row 

Source
pub fn Row<F>(__arg0: Modifier, __arg1: RowSpec, __arg2: F) -> NodeId
where F: FnMut() + 'static,
Expand description

A layout composable that places its children in a horizontal sequence.

§When to use

Use Row to arrange items side-by-side. For vertical arrangement, use Column.

§Arguments

  • modifier - Modifiers to apply to the row layout.
  • spec - Configuration for horizontal arrangement and vertical alignment.
  • content - The children composables to layout.

§Example

Row(
    Modifier::fill_max_width(),
    RowSpec::default().horizontal_arrangement(LinearArrangement::SpaceBetween),
    || {
        Text("Left", Modifier::empty());
        Text("Right", Modifier::empty());
    }
);