ticket refinements

This commit is contained in:
2026-06-02 11:52:31 +02:00
parent 7fad6ee02b
commit a51ac8fe7f
10 changed files with 155 additions and 66 deletions

View File

@@ -78,6 +78,12 @@ class TicketList extends StatelessWidget {
}
}
void _deleteTickets(BuildContext context) {
context.read<TicketListCubit>().deleteTickets(
state.selectedTickets.toList(),
);
}
@override
Widget build(BuildContext context) {
return Stack(
@@ -178,6 +184,11 @@ class TicketList extends StatelessWidget {
runSpacing: 8.0,
alignment: WrapAlignment.end,
children: [
IconButton.filled(
tooltip: 'Elimina',
onPressed: () => _deleteTickets(context),
icon: const Icon(Icons.delete),
),
IconButton.filled(
tooltip: 'Riconsegna',
onPressed: () => _setStatusClosed(context),