You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Dismissible widget is awesome but has very limited functionality which makes it not usable in many real world applications. Let's consider adding the following features (in order of priority):
Allow onResize() callback to get the direction in which the item was dismissed. This is needed to implement two types of functions depending on swipe direction (e.g. bookmark and delete).
Add an "undo" function to restore the dismissed item by moving it back to its position. This may be useful in case if user wants to undo the dismiss action.
Allow custom animation in the background widgets for example by adding a new callback which gets the slider's position. The animation can be a function of a slider position, like in Google Inbox (resizing the icon on the background).
I was also looking for suggestion number 3: having a callback to get the progress of the dismiss action.
Wondering whether we should split these up into individual tickets though, having separate concerns combined probably just makes this harder to gain traction.
We also miss the ability for _resizeController and _moveController to move together in the same time.
For now it moves THEN it resizes.
It would make it feel faster/smoother to start resizing earlier.
See iOs Gmail swipe to delete animation :)
Activity
tp commentedon Jun 5, 2019
I was also looking for suggestion number 3: having a callback to get the progress of the dismiss action.
Wondering whether we should split these up into individual tickets though, having separate concerns combined probably just makes this harder to gain traction.
leviatan21 commentedon Aug 25, 2019
Hi: I'm also looking for suggestion number 1: Allow onResize() callback to get the direction in which the item was dismissed
Thanks
BazinC commentedon Jan 25, 2021
We also miss the ability for _resizeController and _moveController to move together in the same time.
For now it moves THEN it resizes.
It would make it feel faster/smoother to start resizing earlier.
See iOs Gmail swipe to delete animation :)
IlyaMax commentedon Aug 16, 2022
It would be great if moveController was exposed, it solves many issues I think
lukepighetti commentedon Dec 15, 2022
Would love to be able to trigger a dismiss programmatically
dismissibleController.dismiss(DismissDirection.up)I was expecting to be able to access
DismissibleStatevia GlobalKey and find a helper function for performing this action