1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

add remove-button (#545)

This commit is contained in:
Mohak Shrivastava
2020-09-18 05:26:30 +05:30
committed by GitHub
parent 358485d7fa
commit 850eff6330

View File

@@ -57,7 +57,10 @@ class _AnimatedListDemoState extends State<AnimatedListDemo> {
leading: CircleAvatar(
child: Icon(Icons.person),
),
onLongPress: () => deleteUser(index),
trailing: IconButton(
icon: Icon(Icons.delete),
onPressed: () => deleteUser(index),
),
);
}