flutter_swipe_action_cell icon indicating copy to clipboard operation
flutter_swipe_action_cell copied to clipboard

Unable to get the callbacks when a cell Opens

Open Iamzaryab opened this issue 2 years ago • 2 comments
trafficstars

Hi I want to change the background of item when the cell is opened and reset at cell closed the how can I achieve this I tried SwipeActionController too but it is not triggering on any event

Iamzaryab avatar Oct 27 '23 10:10 Iamzaryab

This is also what I miss from the package. Great job, but a callback would be really nice.

I find out you can listen to events using:

SwipeActionStore.getInstance().bus.on().listen((event) {
  // do something
})

But the events coming in do not provide enough information to know what happened. For example if I open a cell programmatically, first I receive a CellProgramOpenEvent, and right after it a CellFingerOpenEvent. Also, in the object there is no way to know if the cell was opened or closed. Can maybe somebody help?

danielRi avatar May 28 '24 05:05 danielRi