chore(text_input): add winit example and do some cleanup

This commit is contained in:
Ashley Wulber 2023-08-21 18:58:36 -04:00
parent 878c2dcd5d
commit cc74c63d9b
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
6 changed files with 56 additions and 32 deletions

View file

@ -504,6 +504,10 @@ impl State {
.size(20)
.id(INPUT_ID.clone())
.into(),
cosmic::widget::text_input("test", &self.entry_value)
.width(Length::Fill)
.on_input(Message::InputChanged)
.into(),
])
.into()
}