BasicText(
text = "你好",
style = TextStyle(
fontWeight = FontWeight.Bold,
fontSize = size,
color = if(showCenter.value) Color(0xff333333) else Color(0x99333333) ,
),
modifier = Modifier
.clickable(
indication = null, // Removes the ripple effect
interactionSource = remember { MutableInteractionSource() } ) {
}
)
加:
modifier = Modifier
.clickable(
indication = null, // Removes the ripple effect
interactionSource = remember { MutableInteractionSource() } ) {
}