eygraber
05/19/2023, 8:31 PMBox
?
private val noopOnClick: () -> Unit = {}
private val noopInteractionSource = object : MutableInteractionSource {
override val interactions = emptyFlow<Interaction>()
override suspend fun emit(interaction: Interaction) {}
override fun tryEmit(interaction: Interaction) = true
}
public fun Modifier.blockClickThrough(): Modifier = clickable(
interactionSource = noopInteractionSource,
indication = null,
onClick = noopOnClick
)
Colton Idle
05/19/2023, 9:13 PMeygraber
05/19/2023, 9:40 PMpointerInput
, thanksvide
05/19/2023, 10:05 PM.pointerInput(Unit) {}
Surface
has the same internal implementation)andrew
05/19/2023, 11:53 PM