dimsuz
08/16/2021, 4:52 PMRow
of `Button`s and then in some situations I pass it fillMaxWidth
modifier and I want buttons to expand equally inside it, but if no fillMaxWidth
modifier is used on that component I want them to behave like "wrap content" would, i.e. be of their inrinsic width.
Is this possible to achive easily or should I pass some kind of custom parameter to my component for it to change layout accordingly?Chris Sinco [G]
08/16/2021, 5:03 PMdimsuz
08/16/2021, 5:16 PMColton Idle
08/16/2021, 5:52 PMdimsuz
08/16/2021, 5:56 PMColton Idle
08/16/2021, 5:59 PMColton Idle
08/16/2021, 6:00 PMmodifier = Modifier.weight(1f, false)
dimsuz
08/16/2021, 6:00 PMdimsuz
08/17/2021, 1:57 PM