Skip to main content

center_y

Function center_y 

Source
pub fn center_y<'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 vertically and centers its contents inside.

This is equivalent to:

let center_y = container("Vertical Center!").center_y(Fill);