@Composable
fun Box02() {
val rippleIndication = rememberRipple(bounded = true, color = Color.Blue)
CompositionLocalProvider(LocalIndication provides rippleIndication) {
Box(
modifier = Modifier
.width(100.dp)
.clickable { }
.height(100.dp)
)
{
}
}
}
修改Box点击时默认的水波纹效果
最新推荐文章于 2024-10-04 11:47:50 发布