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
Description: Full description of issue here
"Alignment: Elements in a list item are middle-aligned unless it is at or above 88dp (such as when a list item contains three lines of text) at which point everything is top aligned"
Using the ListItem composable only aligns the icon to the center, never to the top ignoring the list item's height as per your won specs.
Expected behavior: Screenshots and/or description of expected behavior
Minimal sample app repro: Please consider attaching a minimal sample app that reproduces the issue. This will help narrow down the conditions required for reproducing the issue, and it will speed up the bug fix process. You may attach a zip file of the sample app or link to a GitHub repo that contains the sample app.
Android API version: 15
Material Library version: Material Android Library version you are using here (e.g., 1.1.0-alpha07)
"com.google.android.material:material:1.11.0"
const val COMPOSE = "1.7.3"
const val COMPOSE_MATERIAL_3 = "1.3.0"
Device: Pixel 6a and Compose Preview
To help us triage faster, please check to make sure you are using the latest version of the library.
Description: Full description of issue here
"Alignment: Elements in a list item are middle-aligned unless it is at or above 88dp (such as when a list item contains three lines of text) at which point everything is top aligned"
Using the ListItem composable only aligns the icon to the center, never to the top ignoring the list item's height as per your won specs.
Expected behavior: Screenshots and/or description of expected behavior
Source code: The code snippet which is causing this issue
ListItem( modifier = Modifier.clickable { onClick.invoke() }, leadingContent = { Icon( painter = painterResource(id = iconRes), contentDescription = null ) }, headlineContent = { Text(text = stringResource(id = stringRes)) } )
Minimal sample app repro: Please consider attaching a minimal sample app that reproduces the issue. This will help narrow down the conditions required for reproducing the issue, and it will speed up the bug fix process. You may attach a zip file of the sample app or link to a GitHub repo that contains the sample app.
Android API version: 15
Material Library version: Material Android Library version you are using here (e.g., 1.1.0-alpha07)
"com.google.android.material:material:1.11.0"
const val COMPOSE = "1.7.3"
const val COMPOSE_MATERIAL_3 = "1.3.0"
Device: Pixel 6a and Compose Preview
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.
The text was updated successfully, but these errors were encountered: