My code is as follows.
The onclick parameter is essential for the button, but is there a way to remove the ripple effect when turning on?
@Composable
fun MyButton() {
Button(
shape = RoundedCornerShape(4.dp),
enabled = isEnabled,
interactionSource = interactionSource,
colors = ButtonDefaults.buttonColors(
disabledBackgroundColor = getButtonDisableColor(style.styleMode),
backgroundColor = getButtonColor(isPressed, style.styleMode)
),
border = getButtonBorderColor(isEnabled, isPressed, style.styleMode),
modifier = Modifier
.fillMaxWidth()
.height(style.buttonHeight)
.padding(4.dp),
onClick = onClick
) {
Text(text = "content", fontSize = 16.dp, style = TextStyle(), color = Color.Red)
}
}

