New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set SlidableController.activeState.open() with onTap #39
Comments
I see. This widget wasn't created with this kind of feature in mind. I need to rewrote some parts in order to be animated by sliding or with a call to a function. |
Thank you for the prompt answer letsar. |
If Thank you, I will keep you posted on my advancement 🙂 . |
I've implemented a solution for this on my fork, so if you could have a look... |
Amazing! Thanks both. I added your version to my |
Great. I've been working on a complete refactor of the API (you can see the work in progress in the https://github.com/letsar/flutter_slidable/tree/feature/refactor branch) and I added the feature to animate on when opening. I will keep you posted on the advancement. |
@DARdk are you calling open() without the actionType? |
@miDeb Yes, I did not add the actionType. By adding it as: |
@DARdk thanks so much, you save me! |
How to check if the |
Closing as this is resolved |
How can I check if the slideable is already open to close it? |
@armandojimenez any solution? |
I use this:
When I tap the cell, it opens or close depending if it's already open. Do only weird issue, is that if I open it via a tap, and them try to close it by sliding, it does without animation, and looks weird. But if you closed it back by tap it works fine. |
@armandojimenez what should instead of rendering mode in latest null satety version 1.0.0. I want to open the slider at a time on tapping the list item , when i tap on second item , first item just closes its slide but second item not opening it slide |
Thank you for an awesome Flutter implementation!
Is it possible to open the drawer and show all the iconslider actions through a onTap event on the Slidable? See the scenario on the two images below:
Currently the only example that is given is to close the drawer as seen in Issue 33:
#33
However, if the Slidable is not in an activestate, the output of:
slidableController.activeState is null, and hence I am not able to do:
slidableController.activeState.open() because it will simply say:
"The method 'open' was called on null"
See the example code below:
The text was updated successfully, but these errors were encountered: