Tim Malseed
03/10/2021, 12:43 AMColton Idle
03/10/2021, 12:43 AMTim Malseed
03/10/2021, 12:43 AM...
trailing = {
Column(Modifier.height(72.dp), Arrangement.Center) {
Button(onClick = { }) {
Text(text = "60kg")
}
}
},
Tim Malseed
03/10/2021, 12:45 AMOffsetToBaselineOrCenter(
if (icon != null) {
PrimaryBaselineOffsetWithIcon
} else {
PrimaryBaselineOffsetNoIcon
}
) {
Box(
// TODO(popam): find way to center and wrap content without minHeight
Modifier.heightIn(min = minHeight)
.padding(end = TrailingRightPadding),
contentAlignment = Alignment.Center
) { trailing() }
}
Tim Malseed
03/10/2021, 12:46 AMminHeight
should resolve to 72.dp. I can’t see any obvious reason why I can’t stick a Column inside that Box, and then align the contents of the column to center vertically. But, it’s about day 2 of compose so hopefully I’m about to find out!Tim Malseed
03/10/2021, 12:49 AMTim Malseed
03/10/2021, 1:03 AMTim Malseed
03/10/2021, 1:03 AM