Skip to content

Instantly share code, notes, and snippets.

@mattrob33
Created June 14, 2023 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattrob33/4d5a475eee14b9463cf47e993e0e5af0 to your computer and use it in GitHub Desktop.
Save mattrob33/4d5a475eee14b9463cf47e993e0e5af0 to your computer and use it in GitHub Desktop.
inline fun Modifier.noRippleClickable(crossinline onClick: () -> Unit): Modifier = composed {
clickable(
indication = null,
interactionSource = remember { MutableInteractionSource() }
) {
onClick()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment