feat(task): record and display task completion time (#1536)

This commit is contained in:
Levi authored and GitHub committed 2026-09-25 19:15:31 +08:00
1 parent 7ce4fb7f0e
commit 224b488087
30 files changed
+113 -23

No files matched your search

@@ -319,6 +319,14 @@ class _TaskInfoTab extends StatelessWidget {
_InfoBlock(label: context.l10n.remaining, value: remaining),
if (task.createdAt case final createdAt?)
_InfoBlock(label: context.l10n.createdAt, value: _formatTaskDateTime(createdAt)),
if (task.status == TaskStatus.completed)
_InfoBlock(
label: context.l10n.doneAt,
value: switch (task.doneAt) {
final doneAt? => _formatTaskDateTime(doneAt),
_ => '—',
},
),
Container(
key: const ValueKey('task-details-info-divider'),
height: 1,