Attendance validation involving Location Detection + Facial Recoginition with Liveness Detection

This commit is contained in:
2026-03-07 23:46:43 +08:00
parent 52ef36faac
commit 3dbebd4006
25 changed files with 4840 additions and 361 deletions
+6 -2
View File
@@ -124,9 +124,13 @@ class _SchedulePanel extends ConsumerWidget {
data: (allSchedules) {
final now = AppTime.now();
final today = DateTime(now.year, now.month, now.day);
// Exclude overtime schedules they only belong in the Logbook.
final nonOvertime = allSchedules
.where((s) => s.shiftType != 'overtime')
.toList();
final schedules = showPast
? allSchedules
: allSchedules
? nonOvertime
: nonOvertime
.where((s) => !s.endTime.isBefore(today))
.toList();