Created
June 14, 2023 01:52
-
-
Save mattrob33/4d5a475eee14b9463cf47e993e0e5af0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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