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
bruno.aybar
03/13/2021, 2:02 PM
If the icon and text are within a Row, you can use the parameter
verticalAlignment = Alignment.CenterVertically
m
mannodermaus
03/13/2021, 2:04 PM
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
Steffen Funke
03/14/2021, 7:43 AM
Hi, had the same issue.
singleLine = true
on the TextField fixed it and it is nicely aligned now.
❤️ 3
m
mannodermaus
03/17/2021, 1:13 PM
Wow, that is indeed it. Thank you so much, Steffen!