add remove-button (#545)

pull/552/head
Mohak Shrivastava 4 years ago committed by GitHub
parent 358485d7fa
commit 850eff6330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save