CorinnaH
07/21/2026, 2:05 PMwithBulletList(), but it does not work as expected: List Item indendation works fine, but no bullet is shown. I tried to define own bullets, makes no difference. What do I need to do?
To reproduce: simply create a new multiplatform project with the only target "web" (see first screenshot), then change code in shared/commonMain/kotlin/compose/project/testbulletlists/App.kt like this. Running it produces the output in screenshot 2.
fun App() {
MaterialTheme {
Column(
modifier = Modifier
.background(MaterialTheme.colorScheme.primaryContainer)
.safeContentPadding()
.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Text(modifier = Modifier.width(200.dp).padding(all = 40.dp), text = buildAnnotatedString {
withBulletList {
withBulletListItem { append("Item 1") }
withBulletListItem { append("Item 2") }
withBulletListItem { append("Item 3") }
}
}
)
}
}
}CorinnaH
07/21/2026, 3:06 PM@Composable
@Preview
fun App() {
MaterialTheme {
Column(
modifier = Modifier
.background(MaterialTheme.colorScheme.primaryContainer)
.safeContentPadding()
.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Text(modifier = Modifier.width(200.dp).padding(all = 40.dp), text = buildAnnotatedString {
withBulletList {
withBulletListItem { append("Item 1") }
withBulletListItem { append("Item 2") }
withBulletListItem { append("Item 3") }
}
}
)
}
}
}
Result: