-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Programmatically open slider #67
Comments
Or just a little peek so the user knows that there are buttons available via slide |
Any update on this? I'm looking to do the same thing. |
The readme has a note about doing this:
However, I was not able to figure it out with these details. Has anyone been able to get this working? |
if i have a few sliders on screen (widget with slider and listview with sliders) can you give me example. |
@irishka90 I am experiencing the same issue, not able to figure it out using the documentation. |
I created a fork with peek option for Slidable (in peek feature branch). Just set peekOnInit and peekActionType. Maybe it will help someone. https://github.com/Brazol/flutter_slidable/tree/feature/peek |
For those having trouble with Slidable.of(context) returning null, refer to this issue to make sure you aren't using it incorrectly. I had the same issue and eventually figured out what I was doing wrong. |
Did anyone find a solution? I can close the slider via controoller.activeState?close() if it is open, however, the open() method does not work the same way for some reason |
Works for me. |
@brotoo25 I got that this is the way to programmatically open and close but what If I'm passing Function from its parent widget tree and assigning it's directly to onPress or onClick of action icon. How can I perform close? |
I tried using your fork. It didn't work either. |
I think, this is now possible in the 1.0 version. You can get the SlidableController within a Slidable's child and make some actions programmatically. |
Is there a working example of how to use the SlideableController? |
I Got the Solution..... here is the Solution Widget slidable(int index) { |
Would like to present the side buttons to the user for a little while and then close it, all without any touch interactions.
The text was updated successfully, but these errors were encountered: