theapache64
02/21/2022, 8:46 PMonPress
nor onTap
getting triggered on Button
? 🤔 🧵theapache64
02/21/2022, 8:47 PMButton(
modifier = Modifier
.pointerInput(Unit) {
detectTapGestures(
onPress = {
println("Pressed")
},
onTap = {
println("Tapped")
}
)
},
onClick = {}
) {
Text("Hello")
}
I need to get the clicked offset to do my business logic, but its not getting triggered.Dominaezzz
02/21/2022, 11:33 PMtheapache64
02/22/2022, 8:16 AMKebbin
02/23/2022, 4:01 AMtheapache64
02/23/2022, 4:02 AMButton
with Surface
or use Text
.Kebbin
02/23/2022, 4:03 AM