Is it a known issue that TextField icons and text ...
# compose
m
Is it a known issue that TextField icons and text are impossible to align to a common baseline, or am I missing an obvious API here? This icon is centered correctly, but the text is way too far up. I’ve seen the same thing on all the submissions to the Compose Challenge that I came across on Twitter, so I’m wondering if it might be a problem with the custom font
☝️ 4
b
If the icon and text are within a Row, you can use the parameter
verticalAlignment = Alignment.CenterVertically
m
For static text, this would work just fine. This however is a
TextField
and I’d like to use the provided component for input handling, icons, focus etc., rather than having to reimplement it all with my own Row. Appreciate your comment though! 🙂
s
Hi, had the same issue.
singleLine = true
on the TextField fixed it and it is nicely aligned now.
❤️ 3
m
Wow, that is indeed it. Thank you so much, Steffen!
👋 1