This commit is contained in:
2026-04-11 12:40:03 +02:00
parent a485d79460
commit 9f154afe9e
15 changed files with 522 additions and 12 deletions

View File

@@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
import 'package:flux/core/blocs/session/session_bloc.dart';
import 'package:flux/features/auth/ui/auth_screen.dart';
import 'package:flux/features/company/ui/create_company_screen.dart';
import 'package:flux/features/customers/models/customer_model.dart';
import 'package:flux/features/customers/ui/customer_detail_screen.dart';
import 'package:flux/features/home_and_dashboard/ui/home_screen.dart';
import 'package:flux/features/store/ui/create_store_screen.dart';
import 'package:go_router/go_router.dart';
@@ -58,6 +60,14 @@ class AppRouter {
path: '/create-store',
builder: (context, state) => const CreateStoreScreen(),
),
GoRoute(
path: '/customer/:id',
builder: (context, state) {
// Recuperiamo l'oggetto customer passato tramite extra
final customer = state.extra as CustomerModel;
return CustomerDetailScreen(customer: customer);
},
),
],
);
}