Aaron Yoder
04/04/2021, 2:07 AMModifier.combinedClickable().indication()
on a Box
, and having a hard time figuring out how to just set the indication to null. As I understand it, I should just be able to set indication = null
, but when I do .indication(indication = null)
it complains about no value passed for interactionSource
. Not really sure what I should pass there. There was this workaround I found from a few weeks ago (interactionSource = remember { MutableInteractionSource() }, indication = null
) but that doesn't seem to have any effect, the indication is still there.Carson Holzheimer
04/05/2021, 8:26 AMcombinedClickable()
is taking precedence. Have a look at the source code for combinedClickable()
and you will see:
indication = LocalIndication.current,
interactionSource = remember { MutableInteractionSource() }
Carson Holzheimer
04/05/2021, 8:27 AMcombinedClickable(
indication = null,
interactionSource = remember { MutableInteractionSource() }
)
Aaron Yoder
04/07/2021, 12:52 AMcombinedClickable()
solves the issue, so thanks for the help! I did check the source for indication()
but never thought to check for combinedClickable()
so I'll keep that in mind next time.Carson Holzheimer
04/07/2021, 7:46 AMcombinedClickable
adds an indication because that's normally what people want by default when they click. However indication()
exists separately so you can modify with that small piece of functionality. You know, like, composable :D