From 850eff633001f850350c4904599b08118d8fb1f1 Mon Sep 17 00:00:00 2001 From: Mohak Shrivastava <58987025+mohak852@users.noreply.github.com> Date: Fri, 18 Sep 2020 05:26:30 +0530 Subject: [PATCH] add remove-button (#545) --- animations/lib/src/misc/animated_list.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/animations/lib/src/misc/animated_list.dart b/animations/lib/src/misc/animated_list.dart index e5a1b2b89..2ec0b5aa4 100644 --- a/animations/lib/src/misc/animated_list.dart +++ b/animations/lib/src/misc/animated_list.dart @@ -57,7 +57,10 @@ class _AnimatedListDemoState extends State { leading: CircleAvatar( child: Icon(Icons.person), ), - onLongPress: () => deleteUser(index), + trailing: IconButton( + icon: Icon(Icons.delete), + onPressed: () => deleteUser(index), + ), ); }