Open ghost opened 2 years ago
Yeah the API to dismiss programmatically is not ideal, I should work on something.
Same here, after migrating, the previously working solution seems difficult to implement. Would love to have an easier way to dismiss tiles through the onPress
function of SlidableAction
.
This issue seems to be related to #326 and #368
I just recently updated from version 0.6.0 and I wasn't successful in implementing the behavior I had before. I used to have a slidable that would dismiss when the user chose a "Remove" slidable action, with
dragDismissible
disabled, theonTap
of that action would trigger theSlidableState.dismiss()
method, which would then play the dismiss animation, runonWillDismiss
and, if successful, trigger theonDismissed
function.Now, after changing the action's new
onPressed
to beSlidable.of(context).dismiss
, it asks for aResizeRequest
that has anonDismissed
parameter itself, and even if I move theonDismissed
from theDismissiblePane
to it, it doesn't run theconfirmDismiss
(and also requires me to have an emptyonDismissed
in theDismissiblePane
).Is there any way to make the action simply trigger the dismiss action like it used before? Using the actual parameters already informed in the
DismissiblePane
and also using theconfirmDismiss
?Thanks!