You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the font size of the items increases via the textStyle parameter, the values and lines above and below the center value get further and further away from their expected locations. (Adding lineHeight to the TextStyle makes no difference.)
Reference Code:
val possibleValues = (1945..1975).map { it.toString() }
var state by remember { mutableStateOf(possibleValues[8]) }
Spacer(modifier = Modifier.height(40.dp))
ListItemPicker(
label = { it },
list = possibleValues,
value = state,
onValueChange = { state = it },
textStyle = TextStyle(fontSize = 36.sp, fontWeight = FontWeight.Normal),
)
As the font size of the items increases via the
textStyleparameter, the values and lines above and below the center value get further and further away from their expected locations. (AddinglineHeightto theTextStylemakes no difference.)Reference Code:
Result at 16.dp font size:

Result at 24.dp font size:

Result at 36.dp font size:
