dimsuz
02/01/2022, 12:10 AMIcon
results in Row with intrinsic height having a half-cut-out text. Sample in the thread.dimsuz
02/01/2022, 12:10 AMRow(modifier = Modifier.width(180.dp).height(IntrinsicSize.Min)) {
Column(
modifier = Modifier.background(Color.Gray)
.weight(2/3f)
.fillMaxHeight()
) {
Icon(imageVector = Icons.Default.Check, contentDescription = null)
Text(text = "hello world and foo bar")
}
Column(
modifier = Modifier.background(Color.Green)
.weight(1/3f)
.fillMaxHeight()
) {
Icon(imageVector = Icons.Default.Check, contentDescription = null)
Text(text = "hello")
}
}
dimsuz
02/01/2022, 12:12 AMdimsuz
02/01/2022, 12:13 AMModifier.size(24.dp)
to `Icon`s (or even remove them), then calculations seem to start to work:dimsuz
02/01/2022, 12:15 AMRow
fill max width and no modifiers on icons, then text even won't show up at all. only icons. It was very confusing initially.
Is this the expected behavior?Albert Chang
02/01/2022, 2:21 AM