flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

Slidable not closing

Open tologonkudaiberdiuulu opened this issue 2 years ago • 6 comments

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.

tologonkudaiberdiuulu avatar Mar 17 '22 04:03 tologonkudaiberdiuulu

This workaround helped me to fix a similar problem

https://github.com/letsar/flutter_slidable/issues/286#issuecomment-999316250

loic-hamdi avatar Mar 23 '22 15:03 loic-hamdi

@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

gopibathini avatar Apr 08 '22 06:04 gopibathini

@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,
)

loic-hamdi avatar Apr 08 '22 18:04 loic-hamdi

@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.

gopibathini avatar Apr 11 '22 07:04 gopibathini

Can you set autoClose to false on the SlidableAction?

letsar avatar Jul 10 '22 15:07 letsar

Can you set autoClose to false on the SlidableAction?

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

bawantha avatar Jul 24 '22 21:07 bawantha