Implement align_x for TextInput

Co-authored-by: Shan <shankern@protonmail.com>
This commit is contained in:
Shan 2024-07-30 14:09:12 -07:00 committed by Héctor Ramón Jiménez
parent cfd2e7b116
commit 6c741923c6
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 71 additions and 11 deletions

View file

@ -202,7 +202,8 @@ impl Todos {
.on_input(Message::InputChanged)
.on_submit(Message::CreateTask)
.padding(15)
.size(30);
.size(30)
.align_x(Center);
let controls = view_controls(tasks, *filter);
let filtered_tasks =