Skip to main content

center_x

Function center_x 

Source
pub fn center_x<'a, W, Theme>(content: W) -> Container<'a, W, Theme>
where Theme: Catalog + 'a,
Expand description

Creates a new Container that fills all the available space horizontally and centers its contents inside.

This is equivalent to:

let center_x = container("Horizontal Center!").center_x(Fill);