Add delete icon button next to edit (with confirm dialog); swipe-to-delete keeps its confirm too
This commit is contained in:
@@ -198,10 +198,23 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|||||||
title: Text(e.id,
|
title: Text(e.id,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold)),
|
fontWeight: FontWeight.bold)),
|
||||||
trailing: IconButton(
|
trailing: Row(
|
||||||
icon: const Icon(Icons.edit),
|
mainAxisSize: MainAxisSize.min,
|
||||||
tooltip: 'Edit',
|
children: [
|
||||||
onPressed: () => _editEntry(e),
|
IconButton(
|
||||||
|
icon: const Icon(Icons.edit),
|
||||||
|
tooltip: 'Edit',
|
||||||
|
onPressed: () => _editEntry(e),
|
||||||
|
),
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(Icons.delete),
|
||||||
|
tooltip: 'Hapus',
|
||||||
|
onPressed: () {
|
||||||
|
_touch();
|
||||||
|
_deleteEntry(e);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
|
|||||||
Reference in New Issue
Block a user