feat: Add event name to order items and refactor navigation and shift data access to use direct object properties.

This commit is contained in:
Achintha Isuru
2026-02-22 21:07:57 -05:00
parent 0980c6584b
commit 9e38fb7d5f
8 changed files with 150 additions and 93 deletions

View File

@@ -23,6 +23,7 @@ class OrderItem extends Equatable {
required this.filled,
required this.workersNeeded,
required this.hourlyRate,
required this.eventName,
this.hours = 0,
this.totalValue = 0,
this.confirmedApps = const <Map<String, dynamic>>[],
@@ -76,6 +77,9 @@ class OrderItem extends Equatable {
/// Total value for the shift role.
final double totalValue;
/// Name of the event.
final String eventName;
/// List of confirmed worker applications.
final List<Map<String, dynamic>> confirmedApps;
@@ -97,6 +101,7 @@ class OrderItem extends Equatable {
hourlyRate,
hours,
totalValue,
eventName,
confirmedApps,
];
}