Hi, with Compose 1.7 on the brink of release with ...
# compose
s
Hi, with Compose 1.7 on the brink of release with the new TextFields, is there any hope that a
contentPadding
parameter will make it in? I opened an issue in Google Issue Tracker a while ago, and the Compose team showed interest, but nothing has materialized. Link: https://issuetracker.google.com/issues/302599627
This would be incredibly useful to add internal padding to the TextField that doesn't cut the text when scrolling. This is a problem that even material text fields suffer from (they apply some default padding, but it causes long text to get cut off on scrolling it; which doesn't look good). In this case applying the padding using a
contentPadding
(just like the LazyList
contentPadding
parameter) would result in scrolled text reaching all the way to the border of the field, which would look more natural.
@Zach Klippenstein (he/him) [MOD] sorry for the ping, but are there any updates on this?
Reviving this question, any chance the new
BasicTextField
could get a
contentPadding
parameter, like lazy lists? That way we can avoid the text getting clipped by external padding when scrolled. 1.7 is almost here, but this hasn't made it in.
h
Unfortunately it's too late in the release cycle for adding a new API but this is on our radar for
1.8
.
s
Thanks for the response, looking forward to it!