Код: Выделить всё
private object DisabledRippleTheme : RippleTheme {
@Composable
override fun defaultColor(): Color = Color.Transparent
@Composable
override fun rippleAlpha(): RippleAlpha = RippleAlpha(0f, 0f, 0f, 0f)
}
// ...
CompositionLocalProvider(LocalRippleTheme provides DisabledRippleTheme) {
Button {
// ...
}
}
Код: Выделить всё
CompositionLocalProvider(LocalRippleConfiguration provides null) {
Button {
// ...
}
}
я пытался переопределить RippleTheme, но получил эта ошибка Использование «RippleTheme» является ошибкой. RippleTheme и LocalRippleTheme устарели
Подробнее здесь: https://stackoverflow.com/questions/788 ... of-compose
Мобильная версия