modify clockin & leave

This commit is contained in:
2026-03-04 23:45:26 +08:00
parent ce706694ef
commit 0516db1690
7 changed files with 163 additions and 77 deletions
+4
View File
@@ -34,6 +34,10 @@ class ClockInRecord {
String get formattedTime => dateTime != null ? DateFormat('HH:mm:ss').format(dateTime!) : '--:--';
String get formattedDate => dateTime != null ? DateFormat('yyyy-MM-dd').format(dateTime!) : 'N/A';
// 新增:滿足列表顯示「日期 + 時間」的需求
String get formattedDateTime => dateTime != null
? DateFormat('yyyy-MM-dd HH:mm').format(dateTime!)
: 'N/A';
Color get typeColor {
if (type == '上班') return Colors.blue;