_`withBulletList(),`_ but it does not work as expe...
# compose-web
c
withBulletList(),
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.
Copy code
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") }
                   }
                }
            )
        }
    }
}
In a web project generated with the Kotlin multiplatform wizard:
Copy code
@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: