Hello all. Wondering if anyone is successfully using material3 with SwipeToDismiss (material2). I have everything “working” with the exception of setting custom dismissThresholds. When I do I get compile error, see reply.
Billy Newman
03/02/2023, 2:31 PM
Copy code
SwipeToDismiss(
state = dismissState,
directions = setOf(DismissDirection.EndToStart),
dismissThresholds = {
val threshold = FixedThreshold(128.dp)
threshold
},
Unresolved reference: FixedThreshold
As material3 swipe to dismiss is not yet public, I am not sure I can/should use the material2 api. Any ideas?