fix router

This commit is contained in:
2026-05-09 17:30:51 +02:00
parent 901f63841f
commit 1081609530
4 changed files with 20 additions and 7 deletions

View File

@@ -158,7 +158,7 @@ class _OperationListScreenState extends State<OperationListScreen> {
),
trailing: const Icon(Icons.chevron_right),
onTap: () => context.pushNamed(
'operation-form',
'operations/form/id=${operation.id}',
extra: operation, // <-- LA MAGIA È QUI: Passa l'oggetto intero!
// Teniamo anche il parametro URL per coerenza di routing
queryParameters: operation.id != null