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),
)
Result at 16.dp font size:
Result at 24.dp font size:
Result at 36.dp font size:
The text was updated successfully, but these errors were encountered:
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. (AddinglineHeight
to theTextStyle
makes no difference.)Reference Code:
Result at 16.dp font size:
![image](https://user-images.githubusercontent.com/6433968/230861336-2a582f9c-d194-4c77-8603-788fb54d0e9a.png)
Result at 24.dp font size:
![image](https://user-images.githubusercontent.com/6433968/230861864-8ccaf241-c38b-447e-9008-64e61771df8c.png)
Result at 36.dp font size:
![image](https://user-images.githubusercontent.com/6433968/230861433-1d27c719-1282-4cad-846e-95cb0d352b79.png)
The text was updated successfully, but these errors were encountered: