From f8337b8da7ff6bcf876b54d1c7dac460d2e03747 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 24 Jan 2025 15:55:24 +0100 Subject: Add helper functions for alignment to `widget` module --- examples/todos/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/todos/src/main.rs') diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index e86e23b5..7759552c 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -1,6 +1,6 @@ use iced::keyboard; use iced::widget::{ - self, button, center, checkbox, column, container, keyed_column, row, + self, button, center, center_x, checkbox, column, keyed_column, row, scrollable, text, text_input, Text, }; use iced::window; @@ -237,7 +237,7 @@ impl Todos { .spacing(20) .max_width(800); - scrollable(container(content).center_x(Fill).padding(40)).into() + scrollable(center_x(content).padding(40)).into() } } } -- cgit