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

james

03/21/2022, 9:31 PM
if I have a
Row
containing just a
TextField
and a
Button
, what's the proper way to set the TextField's height to always match the Button height? I thought giving the TextField this modifier would do the trick, but it doesn't.. the TextField is still much taller than my button:
Modifier.height(IntrinsicSize.Min)
m

myanmarking

03/21/2022, 9:57 PM
This works in combination with parent fillmaxheight. It is possible some composables wont work due to fixedsize idk. But thats the essence
j

james

03/22/2022, 2:47 AM
thanks for the response mate, your comment about fixed sizes was correct. the default TextField implementation has quite a large minimum height