Nikhil Parab
06/02/2024, 12:56 PMval icon = if (isSelected) Icons.Filled.Grade else Icons.Outlined.Grade
Icon(
imageVector = icon,
contentDescription = "$index Star",
tint = Color(0xFFA58303),
modifier = Modifier
.clip(CircleShape)
.selectable(
selected = isSelected,
onClick = {
onRatingChanged(index.toFloat())
}
)
)
For Ripple Indication, is there a way to clip a composable to an ImageVector shape? Here I tried clipping to circle shape but it is not looking goodSean Proctor
06/02/2024, 9:02 PMIconButton
?