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:
committed by
GitHub
parent
358485d7fa
commit
850eff6330
@@ -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),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user