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

jannis

11/24/2021, 3:45 PM
Is there any way to remove the build-in padding from a
TextField
without using the
BasicTextField
? It doesn't bother me that much, but if the
TextField
scrolls you get a white gap at the top/bottom of the
TextField
😅
I tried wrapping my
TextField
within a scrollable Column. Then the gap is gone. But the Cursor won't scroll with the view when the user adds more lines.
l

Lucien Guimaraes

11/24/2021, 4:54 PM
It has been asked several times here, and sadly you can't 😔 You have to implement your own TextField using BasicTextField. But it's very easy to use and replicate the Material design text field with your own padding
🥲 1
j

jannis

11/24/2021, 7:27 PM
The questions I found were about the padding itself. I'm ok with that as long as it scrolls with the Text. But I fear it's still not possible 😓
z

Zach Klippenstein (he/him) [MOD]

11/29/2021, 7:04 PM
5 Views