dimsuz
02/01/2022, 12:10 AMIcon
results in Row with intrinsic height having a half-cut-out text. Sample in the thread.Row(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")
}
}
Modifier.size(24.dp)
to `Icon`s (or even remove them), then calculations seem to start to work:Row
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