I have the following compose function:
@Preview
@Composable
fun Test(){
Column(modifier = Modifier.fillMaxSize()) {
Text(
text = "hello1",
lineHeight = TextUnit(50f, TextUnitType.Sp)
)
Text(
text = "hello2",
lineHeight = TextUnit(500f, TextUnitType.Sp)
)
}
}
I expect to see 2 texts with different line height, but for some reason none of them have any height changes:
Why?