In Jetpack Compose, how to remove (or change the shape of) the ripple effect when clicking on an Item ?
This is an example with NavigationBar from Material Design 3
var selectedItem by remember { mutableStateOf(0) }
val items = listOf("Songs", "Artists", "Playlists")
NavigationBar {
items.forEachIndexed { index, item ->
NavigationBarItem(
icon = { Icon(Icons.Filled.Favorite, contentDescription = null) },
label = { Text(item) },
selected = selectedItem == index,
onClick = { selectedItem = index }
)
}
}
Trying to add a Modifier with
modifier = Modifier.clickable(interactionSource = interactionSource,indication = null){}
both on the NavigationBar and on the NavigationBarItem, does not work.