We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I add a remove animation when I delete an item inside the onPress method?
endActionPane: ActionPane( motion: const ScrollMotion(), dragDismissible: true, dismissible: DismissiblePane(onDismissed: () { controller.items.removeAt(index);// with deleted animation }), children: [ CustomSlidableAction( autoClose: false, backgroundColor: Color(0xFF7368F2), foregroundColor: Color(0xFFEBEAF5), onPressed: (BuildContext context) { // do something }, child: const Center( child: Text( 'share', style: TextStyle(fontSize: 15), textAlign: TextAlign .center, ), )), CustomSlidableAction( autoClose: false, backgroundColor: Color(0xFFF44444), foregroundColor: Color(0xFFEBEAF5), onPressed: (BuildContext context) { controller.items.removeAt(index);// without deleted animation }, child: const Center( child: Text( 'delete', style: TextStyle(fontSize: 15), textAlign: TextAlign .center, ), )) ], )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How do I add a remove animation when I delete an item inside the onPress method?
The text was updated successfully, but these errors were encountered: