jaqxues
10/18/2020, 7:40 AMgsala
10/18/2020, 9:24 AMjaqxues
10/18/2020, 11:13 AM@Composable fun SplitCard(
modifier: Modifier = Modifier,
left: @Composable -> Unit,
right: @Composable -> Unit
) { ... }
This is the function I made out of it. How can I make it behave like Modifier.weight(1f)
for left? Wrapping it around another composable? What Composable should I use? Surface
adds a background color, so that is out.
This is the implementation I have. How can I apply the Modifier to left? Can I wrap it in agsala
10/18/2020, 11:28 AMjaqxues
10/18/2020, 11:40 AMleft
parameter, cant modify its Modifiergsala
10/18/2020, 1:23 PMleft()
with Box(modifier = Modifier.weight(1f) { left() }
jaqxues
10/18/2020, 1:26 PM