Mark
10/20/2023, 4:57 AMRow
)? Here’s my current approach, but perhaps I should be doing some alignment with baseline etc.
Row(
modifier = Modifier.padding(horizontal = 8.dp),
verticalAlignment = Alignment.CenterVertically,
) {
val textStyle = LocalTextStyle.current.merge(
fontSize = MaterialTheme.typography.subtitle2.fontSize,
fontWeight = FontWeight.Bold,
)
Text(
text = "foo title".uppercase(),
style = textStyle,
modifier = Modifier.padding(vertical = 6.dp),
)
val iconSize = with(LocalDensity.current) {
textStyle.fontSize.toDp()
}
Icon(
imageVector = Icons.Default.Lock,
tint = textStyle.color,
modifier = Modifier.size(iconSize),
contentDescription = null,
)
}