加入短视频

This commit is contained in:
2024-07-12 01:36:59 +08:00
parent e7d81dc827
commit 37a16dd683
9 changed files with 617 additions and 8 deletions

View 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()
}
}