This commit is contained in:
2026-05-29 19:24:40 +02:00
parent 5ad3e12b1f
commit 9bace01b93
7 changed files with 375 additions and 430 deletions

View File

@@ -10,8 +10,9 @@ class TaskFormState extends Equatable {
final DateTime? dueDate;
final bool isGlobal;
final List<String> selectedStaffIds;
final List<TaskReminderConfig>
reminders; // I promemoria (solo dell'utente loggato)
final List<TaskReminderConfig> reminders;
final Map<String, List<StaffMemberModel>>
groupedAvailableStaff; // <-- RIPRISTINATO
final String? errorMessage;
const TaskFormState({
@@ -23,6 +24,7 @@ class TaskFormState extends Equatable {
this.isGlobal = false,
this.selectedStaffIds = const [],
this.reminders = const [],
this.groupedAvailableStaff = const {},
this.errorMessage,
});
@@ -37,6 +39,7 @@ class TaskFormState extends Equatable {
bool? isGlobal,
List<String>? selectedStaffIds,
List<TaskReminderConfig>? reminders,
Map<String, List<StaffMemberModel>>? groupedAvailableStaff,
String? errorMessage,
}) {
return TaskFormState(
@@ -48,6 +51,8 @@ class TaskFormState extends Equatable {
isGlobal: isGlobal ?? this.isGlobal,
selectedStaffIds: selectedStaffIds ?? this.selectedStaffIds,
reminders: reminders ?? this.reminders,
groupedAvailableStaff:
groupedAvailableStaff ?? this.groupedAvailableStaff,
errorMessage: errorMessage,
);
}
@@ -62,6 +67,7 @@ class TaskFormState extends Equatable {
isGlobal,
selectedStaffIds,
reminders,
groupedAvailableStaff,
errorMessage,
];
}