Expand description
Containers let you align a widget inside their boundaries.
§Example
use iced::widget::container;
enum Message {
// ...
}
fn view(state: &State) -> Element<'_, Message> {
container("This text is centered inside a rounded box!")
.padding(10)
.center(800)
.style(container::rounded_box)
.into()
}
Structs§
- A widget that aligns its contents inside of its boundaries.
- The identifier of a
Container
. - The appearance of a container.
Traits§
- The theme catalog of a
Container
.
Functions§
- A
Container
with the givenBackground
. - A bordered
Container
with a background. - A
Container
with a dark background and white text. - Computes the layout of a
Container
. - A rounded
Container
with a background. - A transparent
Container
.
Type Aliases§
- A styling function for a
Container
.