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), + ), ); }