Thread
#compose
    n

    Neil

    2 years ago
    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

    2 years ago
    Seems like you haven’t set MaterialTheme
    something like
    MaterialTheme {<your UI>}
    n

    Neil

    2 years ago
    Ok thanks I'll give that a try👍