Ayfri
04/19/2022, 4:24 PMfillMaxWidth()
but I only want to limit the maximum size)Csaba Szugyiczki
04/19/2022, 4:28 PMRow
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 takeCsaba Szugyiczki
04/19/2022, 4:28 PMAyfri
04/19/2022, 5:44 PMJan BĂna
04/19/2022, 8:19 PMModifier.fillMaxWidth()
itself has a fraction
argument, so you can use that directly on your element, no need to wrap it in a Row
Ayfri
04/19/2022, 8:20 PMJan BĂna
04/19/2022, 8:22 PMChris Sinco [G]
04/20/2022, 3:28 AM