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

alorma

02/25/2021, 1:19 PM
ok, found it
Copy code
.clickable(
                indication = rememberRipple(
                    color = MaterialTheme.colors.primary.copy(alpha = 0.20f),
                ),
                interactionSource = remember { MutableInteractionSource() },
            ) { }
a

Andrey Kulikov

02/25/2021, 2:15 PM
do you mean the Card from material package? there is a contentColor param on it, ripple is using it by default
a

alorma

02/25/2021, 2:34 PM
uhmm
but, if change it, the content there (text, icons...) will be colored according, isn't?
a

Andrey Kulikov

02/25/2021, 2:36 PM
yeah, it is following the material design specification where ripple color is the same as the color of text/icons. but yes, feel free to set it directly on clickable if you don’t like that behavior
6 Views