Join Slack
Small Text alignment issue on iOS: cannot get it vertically aligned to match Android. See thread.
# compose-ios
t
tylerwilson
04/10/2024, 2:49 PM
Small Text alignment issue on iOS: cannot get it vertically aligned to match Android. See thread.
tylerwilson
04/10/2024, 2:49 PM
On the left is iOS, on the right Android. Same Compose code of course...
tylerwilson
04/10/2024, 2:50 PM
this is the Compose code...
Untitled
tylerwilson
04/10/2024, 2:53 PM
Using CMP 1.6.1
i
Ivan Matkov
04/10/2024, 8:30 PM
https://kotlinlang.slack.com/archives/C01D6HTPATV/p1707773384678409?thread_ts=1707771209.931099&cid=C01D6HTPATV
Ivan Matkov
04/10/2024, 8:35 PM
Also, please note that overriding only
fontSize
to control size is incorrect because material theme explicitly specifies line height. (on all platforms including Android - it's consistent)
https://kotlinlang.slack.com/archives/C01D6HTPATV/p1708188232643879?thread_ts=1708182833.226639&cid=C01D6HTPATV
t
tylerwilson
04/10/2024, 9:13 PM
Thank you so much for the link to the other thread. I added the lineHeight = TextUnit.Unspecified, and removed the font size change, and looks perfect now. Cheers!
👍 2
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by