pub fn spacer() -> SpacerExpand description
Create a flexible spacer with weight 1.
Call .weight(n) to set a relative weight greater than 1:
// These two are equivalent:
let _: Column<Msg> = column().push( spacer().weight( 3 ) );
let _: Column<Msg> = column().push( spacer() ).push( spacer() ).push( spacer() );Call .height(px) to create a fixed-size vertical gap:
column()
.push( text( "First" ) )
.push( spacer().height( 24.0 ) ) // Fixed 24px gap
.push( text( "Second" ) )
.into()