flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

Slidable handle programmatically issue: primary SlideAction perform automatically when i try to close secondary SlideAction

Open shofizone opened this issue 5 years ago • 2 comments

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 !

shofizone avatar Jan 20 '20 05:01 shofizone

I don't really understand what you want. Can you explain it with more details and code?

letsar avatar Jul 18 '21 09:07 letsar

(_slidableKey.currentState as SlidableState) .open(actionType: SlideActionType.secondary);

Using the above code, I was able to open secondary option

shaon2016 avatar Nov 24 '21 04:11 shaon2016