Alexander Black
08/04/2021, 6:31 PMDropdownMenuItem(onClick = { /*TODO*/ },
modifier = Modifier
.indication(
interactionSource = remember { MutableInteractionSource() } ,
rememberRipple(color = Color.Red))) {
Text("Some Menu Item")
}
Vsevolod Ganin
08/04/2021, 7:28 PMDropdownMenuItem
with
CompositionLocalProvider(LocalRippleTheme provides object : RippleTheme by LocalRippleTheme.current {
@Composable
override fun defaultColor(): Color = Color.Red
}) {
...
}
A bit sneaky way but it should work. No direct way now unfortunatelyAlexander Black
08/04/2021, 7:32 PMAlexander Black
08/04/2021, 7:48 PMAlexander Black
08/04/2021, 7:48 PMChris Sinco [G]
08/04/2021, 9:50 PMLouis Pullen-Freilich [G]
08/04/2021, 10:05 PMLouis Pullen-Freilich [G]
08/04/2021, 10:06 PMLocalContentColor
by default (as will the text), so you can just provide that around the DropdownMenuItem
Alexander Black
08/05/2021, 3:52 PM