Laco
10/09/2021, 7:15 AMpaddingFromBaseline
in Text.
I saw this document and wrote code as below
@Composable
fun TwoTexts(...) {
Row(modifier.height(IntrinscisSize.Min) {
// skipped other modifiers
Text(text = "Hi", modifier = modifier.paddingFromBaseline(top = 26.sp, bottom = 10.sp)
Divider(...)
Text(text = "there", ...)
}
}
// TextSize = 24.sp
// LineHeight = 36.sp
But ui rendered differently.
I think that text measured by paddingFromBaseline
even if it's smaller than Baseline value
Is this the result intended by IntrinsicSize.Min?
Please look at pictures below
Thanks!Laco
10/09/2021, 7:35 AM