ticket refinements
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user