Anastasia Rozovskaya
10/14/2021, 12:33 PMAnastasia Rozovskaya
10/14/2021, 12:37 PM.clickable(
indication = rememberRipple(
color = MeterialTheme.colors.primary,
),
interactionSource = remember { MutableInteractionSource() },
) { },
but that did nothingAnastasia Rozovskaya
10/14/2021, 12:38 PMKirill Grouchnikov
10/14/2021, 12:52 PMColor.Red
in rememberRipple
?Anastasia Rozovskaya
10/14/2021, 3:53 PMAnastasia Rozovskaya
11/08/2021, 1:25 PMDropdownMenuItem
which I faced later in the project development too
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1628105337051100?thread_ts=1628101862.049500&cid=CJLTWPH7S
the ripple takes ContentColor
as its starting point of building the ripple color, so by providing it to the Card I managed to achieve normal greyish ripple color for the light theme.
Card(.., contentColor = AppTheme.colors.myBaseForRippleColor)
However, I’m still confused, what is it — the ContentColor
? E.g. a text color of a dropdownMenuItem or a title text color of a Card, and more importantly, why it works for light theme only when provided explicitly.Anastasia Rozovskaya
11/08/2021, 1:28 PM