Merge pull request #2535 from bungoboingo/text-input-alignment

Implement `align_x` for `TextInput`
This commit is contained in:
Héctor Ramón 2024-08-24 02:44:55 +02:00 committed by GitHub
commit 043f030214
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 =