https://kotlinlang.org logo
#compose
Title
# compose
t

Tolriq

12/02/2023, 9:41 AM
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

Louis Pullen-Freilich [G]

12/02/2023, 9:45 AM
Migration guidance will be released in the future. To remove ripples you can use the new RippleConfiguration class
t

Tolriq

12/02/2023, 9:49 AM
Hum seems it's only in Material and not m3?
l

Louis Pullen-Freilich [G]

12/02/2023, 10:00 AM
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

Tolriq

12/02/2023, 10:03 AM
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.
9 Views