Is there a way to make text wrap in a `BasicTextFi...
# compose
c
Is there a way to make text wrap in a
BasicTextField
, while still enforcing
singleLine
? I don’t want newline characters, and I don’t want the user to have to horizontal scroll.
For reference, here are the docs on relevant parameters
Copy code
* @param singleLine when set to true, this text field becomes a single horizontally scrolling
 * text field instead of wrapping onto multiple lines. The keyboard will be informed to not show
 * the return key as the [ImeAction]. Note that [maxLines] parameter will be ignored as the
 * maxLines attribute will be automatically set to 1.
 * @param maxLines the maximum height in terms of maximum number of visible lines. Should be
 * equal or greater than 1. Note that this parameter will be ignored and instead maxLines will be
 * set to 1 if [singleLine] is set to true.