autoreplace service operation
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// lib/ui/common/flux_text_field.dart
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter/operations.dart';
|
||||
import 'package:flux/core/theme/theme.dart';
|
||||
|
||||
class FluxTextField extends StatefulWidget {
|
||||
|
||||
Reference in New Issue
Block a user