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
Skaldebane
07/20/2024, 10:00 PM
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.
Skaldebane
07/22/2024, 5:49 AM
@Zach Klippenstein (he/him) [MOD] sorry for the ping, but are there any updates on this?
Skaldebane
07/24/2024, 10:44 AM
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
Halil Ozercan
07/24/2024, 1:11 PM
Unfortunately it's too late in the release cycle for adding a new API but this is on our radar for