aggiunta staff section a OperationFormScreen

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-03 13:03:50 +02:00
parent eb66a707cc
commit 212f33ff51
4 changed files with 47 additions and 25 deletions

View File

@@ -7,6 +7,7 @@ class StaffState extends Equatable {
final List<StaffMemberModel> allStaff;
final Map<String, List<StoreModel>> storesByStaff;
final Map<String, List<StaffMemberModel>> staffByStore;
final List<StaffMemberModel> storeStaff;
final String? error;
const StaffState({
@@ -14,6 +15,7 @@ class StaffState extends Equatable {
this.allStaff = const [],
this.storesByStaff = const {},
this.staffByStore = const {},
this.storeStaff = const [],
this.error,
});
@@ -22,6 +24,7 @@ class StaffState extends Equatable {
List<StaffMemberModel>? allStaff,
Map<String, List<StoreModel>>? storesByStaff,
Map<String, List<StaffMemberModel>>? staffByStore,
List<StaffMemberModel>? storeStaff,
String? error,
}) {
return StaffState(
@@ -29,6 +32,7 @@ class StaffState extends Equatable {
allStaff: allStaff ?? this.allStaff,
storesByStaff: storesByStaff ?? this.storesByStaff,
staffByStore: staffByStore ?? this.staffByStore,
storeStaff: storeStaff ?? this.storeStaff,
error: error,
);
}
@@ -39,6 +43,7 @@ class StaffState extends Equatable {
allStaff,
storesByStaff,
staffByStore,
storeStaff,
error,
];
}