Add delete icon button next to edit (with confirm dialog); swipe-to-delete keeps its confirm too

This commit is contained in:
cania
2026-08-13 16:48:34 +02:00
parent 93e4cc3a65
commit 7f57cf6b96

View File

@@ -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(