Use column! and row! to group multiple widgets such as text and button.
use iced::widget::{button, column, row, Column, text};
pub fn main() -> iced::Result {
iced::application("My app", update, view).run()
}
#[derive(Debug, Clone)]
enum Message {
_Increment,
}
fn update(_value: &mut u64, _message: Message) {
}
fn view(_value: &u64) -> Column<Message> {
column![
text("Yes or No?"),
row!(
button("Yes"),
button("No")
)
].into()
}
➡️ Next: Changing Displaying Content
📘 Back: Table of contents