adjpd
09/27/2021, 5:51 PMadjpd
09/27/2021, 5:52 PMRow(Modifier
.fillMaxWidth()
.height(IntrinsicSize.Min)
) {
Text("Hello", fontSize = 34.sp)
Icon(Icons.Default.Check, null,
Modifier.fillMaxHeight()
.weight(1f)
.background(Color.Red)
)
}
adjpd
09/27/2021, 6:04 PMNicolas Chaduc
09/28/2021, 7:26 AMChris Sinco [G]
09/29/2021, 8:33 AMadjpd
09/29/2021, 11:36 AMChris Sinco [G]
09/29/2021, 5:41 PMModifier.aspectRatio(1f)
and removing weight on the Icon to maintain the size and height equal to the text
Row(
Modifier
.fillMaxWidth()
.height(IntrinsicSize.Min)
.background(Color.Red)
) {
Text(
"Hello",
fontSize = 34.sp,
modifier = Modifier.background(Color.Green)
)
Icon(
Icons.Default.Check,
null,
Modifier
.fillMaxHeight()
.aspectRatio(1f)
)
}
Chris Sinco [G]
09/29/2021, 5:41 PMadjpd
09/29/2021, 6:40 PMaspectRatio
before. Only weights. Nice to know I have aspectRatio
in my toolkit. Cheers.