How to close Action Pane By clicking "No" button in action pane. I'm Using Flutter Slidable Package
First try to get the SlidableController from the context and you can close with that:
final SlidableController? controller = Slidable.of(context); controller?.close();
There is an basically code which you can use
SlideAction({ Key? key, required this.child, VoidCallback? onTap, Color? color, Decoration? decoration, bool closeOnTap = _kCloseOnTap, })
This can be use to perform operation on both button on No Button just set closeOnTap to true
You need to use the SlidableAction Widget this fixed it for me
Copyright © 2021 Jogjafile Inc.
First try to get the SlidableController from the context and you can close with that: