In compose 1.7 `IndicationInstance` is hard deprec...
# compose
t
In compose 1.7
IndicationInstance
is hard deprecated, but the documentation for migration is a little lacking :(
How would I go to migrate something like:
Copy code
object NoIndication : Indication {
    private object NoIndicationInstance : IndicationInstance {
        override fun ContentDrawScope.drawIndication() {
            drawContent()
        }
    }

    @Composable
    override fun rememberUpdatedInstance(interactionSource: InteractionSource): IndicationInstance {
        return NoIndicationInstance
    }
}
So basically to remove ripples on some composables?
l
Migration guidance will be released in the future. To remove ripples you can use the new RippleConfiguration class
t
Hum seems it's only in Material and not m3?
l
For now, it will be added to material3 when it goes to a new alpha release again
Until then you can just suppress the deprecation
And use LocalRippleTheme to provide a transparent colour / 0 alpha
👍 1
t
Ok thanks, seems M3 B1 was tagged so should not take long and in all cases I'm still blocked from upgrading from older 1.6 alphas due to https://issuetracker.google.com/issues/297231233 that I hope will finally get some love.