hey guys, how do we migrate to disable rippled of ...
# compose
h
hey guys, how do we migrate to disable rippled of elements in 1.7.0.alpha, since RippleTheme is deprecated
Copy code
CompositionLocalProvider(LocalRippleTheme provides NoRippleTheme) {
    Switch(
        checked = isSelected,
        onCheckedChange = { onSwitchChange?.invoke(it) },
        enabled = isPreferenceEnabled,
    )
}
this was how I disabled the ripple
Copy code
@Immutable
object NoRippleTheme : RippleTheme {
    @Composable
    override fun defaultColor(): Color = Color.Unspecified

    @Composable
    override fun rippleAlpha(): RippleAlpha = RippleAlpha(
        draggedAlpha = 0f,
        focusedAlpha = 0f,
        hoveredAlpha = 0f,
        pressedAlpha = 0f,
    )
}
especially in the Switch m3 component The migration guide mentions
Copy code
private val DisabledRippleConfiguration =
    RippleConfiguration(isEnabled = false)
but i can’t find it anywhere
ahhhh Note:
androidx.compose.material3:material3:1.3.0-alpha01
has not yet been released.