Got a Row layout like | leading - textfield - trai...
# compose
s
Got a Row layout like | leading - textfield - trailing |. I want the
textField
to not take over
leading
, nor
trailing
so I've opted for a
weight(1f, fill = false)
on the text field in the middle. Problem is, if this layout is now put in a scenario where there is horizontally scrollable content, the text field actually takes 0 width which is not what I want. I still do want the text field to take at least the default size, which as I see comes from here. Now this function and logic for the default size seems to all be internal in the foundation library, so I can't quite append a
widthIn(...)
after my weight modifier in my use case and pass in there the default size. Any thoughts here, or should I just go with a custom layout and use the intrinsic min width of the text field in my calculations somehow