letsar / flutter_slidable

A Flutter implementation of slidable list item with directional slide actions.
MIT License
2.73k stars 591 forks source link

Programmatically open the slide in flutter_slidable package #422

Open Emanuel-js opened 1 year ago

Emanuel-js commented 1 year ago

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.

dev-gyata commented 1 year ago

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

FabriceACohen commented 1 year ago

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