pub fn center_x<'a, Message, Theme, Renderer>(
content: impl Into<Element<'a, Message, Theme, Renderer>>,
) -> Container<'a, Message, Theme, Renderer>
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);