flutter_slidable
flutter_slidable copied to clipboard
Slidable not closing
Slidable.of(context)?.close();
not working in my code. Anyone facing with the same issue? Or something else I must do to close Slidable. P.S. I'm using custom widgets for actions.
This workaround helped me to fix a similar problem
https://github.com/letsar/flutter_slidable/issues/286#issuecomment-999316250
@zzterrozz Hi can you help me i want to open and close when we tap on list item and slidable should open should open one at a time
@zzterrozz Hi can you help me i want to open and close when we tap on list item and slidable should open should open one at a time
You can use:
SlidableAutoCloseBehavior(
closeWhenOpened: true,
closeWhenTapped: true,
)
and
Slidable(
closeOnScroll: true,
)
@zzterrozz slidable is not working auto close behaviour in case of tapping scenario , it is only working for sliding . I mean when i tap for second time on the other list item it is just closes the first list item slide but not opening the second list item slide.
Can you set autoClose
to false on the SlidableAction
?
Can you set
autoClose
to false on theSlidableAction
?
SlidableAction
is not what always want, sometimes we need to change the design, in that case if we delete something from middle UX so bad , the user can't see proper delete effect