Hi, how can I set a Column element to have a maxim...
# compose
a
Hi, how can I set a Column element to have a maximum width as a fraction ? (like
fillMaxWidth()
but I only want to limit the maximum size)
c
Add a
Row
and inside the Row you can have a
Modifier.weight(0.5f)
where you can specify the fraction of the width you want your Composable to take
the Row might need a Modifier.fillMaxWidth() to work properly
a
Thanks !
đź‘Ť 1
j
Modifier.fillMaxWidth()
itself has a
fraction
argument, so you can use that directly on your element, no need to wrap it in a
Row
a
It's not what I want, as I just want to limit the maximum width, not the minimal width
j
oh, i see