reoder view working

This commit is contained in:
José Salazar
2026-01-25 16:06:07 -05:00
parent 6e575a9ad0
commit a9a64caff6
15 changed files with 18338 additions and 17675 deletions

View File

@@ -0,0 +1,46 @@
import 'package:equatable/equatable.dart';
/// Summary of a completed shift role used for reorder suggestions.
class ReorderItem extends Equatable {
const ReorderItem({
required this.orderId,
required this.title,
required this.location,
required this.hourlyRate,
required this.hours,
required this.workers,
required this.type,
});
/// Parent order id for the completed shift.
final String orderId;
/// Display title (role + shift title).
final String title;
/// Location from the shift.
final String location;
/// Hourly rate from the role.
final double hourlyRate;
/// Total hours for the shift role.
final double hours;
/// Worker count for the shift role.
final int workers;
/// Order type (e.g., ONE_TIME).
final String type;
@override
List<Object?> get props => <Object?>[
orderId,
title,
location,
hourlyRate,
hours,
workers,
type,
];
}