https://kotlinlang.org logo
#compose
Title
# compose
n

Neil

09/04/2020, 1:32 PM
I was trying the Material TextField and OutlinedTextField and noticed some odd behaviour. On selecting the fields the cursor is very small and jumps in size once you enter text. Also the vertical size of the TextField increases, as can be seen in this gif. I found that if I set the
textStyle = MaterialTheme.typography.body2
for these components the problem went away. Is this expected behaviour?
d

Dieter Holz

09/06/2020, 4:39 PM
Seems like you haven’t set MaterialTheme
something like
Copy code
MaterialTheme {<your UI>}
n

Neil

09/07/2020, 7:42 AM
Ok thanks I'll give that a try👍