flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

Programmatically open the slide in flutter_slidable package

Open Emanuel-js opened this issue 2 years ago • 2 comments

The current implementation of the flutter_slidable package allows users to open a slide by swiping the item in the list. However, there is no straightforward method to open the slide programmatically in response to specific events or triggers.

Emanuel-js avatar May 01 '23 13:05 Emanuel-js

You can use the Slidable.of(context)?.openStartActionPane() to open it. The BuildContext passed in here should be a BuildContext beneath the Slidable widget

dev-gyata avatar May 17 '23 08:05 dev-gyata

Great but if I have SlidableS in a ListView how can I address one from its key ?

FabriceACohen avatar Jul 21 '23 08:07 FabriceACohen