How to add an icon to a TextInput
?
#1059
Answered
by
yusdacra
push-and-pop
asked this question in
Q&A
-
thank your help |
Beta Was this translation helpful? Give feedback.
Answered by
yusdacra
Sep 26, 2021
Replies: 2 comments 4 replies
-
You can use the icons from iced_aw, and use the Example (might not compile): let icon = Text::new(Icon::Lock);
let text_input = /* create text input */;
let row = Row::with_children(vec![icon.into(), text_input.into()]); |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
hecrj
-
thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the icons from iced_aw, and use the
Row
widget to put an icon before your text input.Example (might not compile):