加入短视频
This commit is contained in:
14
app/src/main/java/com/aiosman/riderpro/ModifierExp.kt
Normal file
14
app/src/main/java/com/aiosman/riderpro/ModifierExp.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
package com.aiosman.riderpro
|
||||
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.composed
|
||||
|
||||
inline fun Modifier.noRippleClickable(crossinline onClick: () -> Unit): Modifier = composed {
|
||||
this.clickable(indication = null,
|
||||
interactionSource = remember { MutableInteractionSource() }) {
|
||||
onClick()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user