fix routing
This commit is contained in:
@@ -292,11 +292,9 @@ class _TicketCard extends StatelessWidget {
|
||||
),
|
||||
onTap: () {
|
||||
context.pushNamed(
|
||||
'ticket-form',
|
||||
Routes.ticketForm,
|
||||
pathParameters: {'id': ticket.id!},
|
||||
extra:
|
||||
ticket, // <-- LA MAGIA È QUI: Passa l'oggetto intero!
|
||||
// Teniamo anche il parametro URL per coerenza di routing
|
||||
extra: (ticket: ticket, createdBy: null),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user