Refactor customer management: migrate from Bloc to Cubit, update state handling, and implement customer search functionality

This commit is contained in:
2026-04-17 21:51:37 +02:00
parent a06be4bf7a
commit 762a7530d5
9 changed files with 435 additions and 170 deletions

View File

@@ -124,6 +124,7 @@ class ServicesCubit extends Cubit<ServicesState> {
bool? isBozza,
bool? resultOk,
String? customerId,
String? customerDisplayName,
}) {
if (state.currentService == null) return;
@@ -138,6 +139,7 @@ class ServicesCubit extends Cubit<ServicesState> {
isBozza: isBozza,
resultOk: resultOk,
customerId: customerId,
customerDisplayName: customerDisplayName,
);
emit(state.copyWith(currentService: updated));