flutter_slidable
flutter_slidable copied to clipboard
Slidable handle programmatically issue: primary SlideAction perform automatically when i try to close secondary SlideAction
What i have did ! I have declared a global key final _slidableKey = GlobalKey<SlidableState>();
then assign it !
Slidable( key: _slidableKey, )
/// on user action _slidableKey.currentState.open( actionType: SlideActionType.secondary, );
after that when i want close secondary action ! it just open primary action ! by the way i didn't find any option to check if is there any SlideAction open or not !
I don't really understand what you want. Can you explain it with more details and code?
(_slidableKey.currentState as SlidableState) .open(actionType: SlideActionType.secondary);
Using the above code, I was able to open secondary option