autoreplace service operation

This commit is contained in:
2026-05-01 09:51:42 +02:00
parent 87b4661d33
commit 9c8576ada5
26 changed files with 136 additions and 134 deletions

View File

@@ -131,7 +131,7 @@ class AppRouter {
),
),
GoRoute(
path: '/services',
path: '/operations',
builder: (context, state) => const ServicesScreen(),
),
GoRoute(
@@ -168,8 +168,8 @@ class AppRouter {
},
),
GoRoute(
path: '/service-form',
name: 'service-form',
path: '/operation-form',
name: 'operation-form',
builder: (context, state) {
final existingService = state.extra as ServiceModel?;
final serviceId = state.uri.queryParameters['serviceId'];
@@ -184,7 +184,7 @@ class AppRouter {
},
),
GoRoute(
path: '/service/:id/upload',
path: '/operation/:id/upload',
builder: (context, state) {
final serviceId = state.pathParameters['id']!;
final serviceName = state.uri.queryParameters['name'] ?? 'Pratica';