modify clockin & leave
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user