Skip to content

Commit 850eff6

Browse files
authored
add remove-button (#545)
1 parent 358485d commit 850eff6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

animations/lib/src/misc/animated_list.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ class _AnimatedListDemoState extends State<AnimatedListDemo> {
5757
leading: CircleAvatar(
5858
child: Icon(Icons.person),
5959
),
60-
onLongPress: () => deleteUser(index),
60+
trailing: IconButton(
61+
icon: Icon(Icons.delete),
62+
onPressed: () => deleteUser(index),
63+
),
6164
);
6265
}
6366

0 commit comments

Comments
 (0)