refactor(ui): consolidate file feedback and shared display helpers

This commit is contained in:
zarzet committed 2026-09-30 21:43:39 +07:00
1 parent c5789df87d
commit 377710ec22
17 files changed
+77 -164

No files matched your search

+16
View File
@@ -70,6 +70,22 @@ String formatBytes(int bytes) {
return '${(bytes / (1024 * 1024 * 1024)).toStringAsFixed(2)} GB';
}
/// English month abbreviations indexed by `DateTime.month - 1`.
const List<String> shortMonthNames = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
/// "m:ss" clock formatting for track durations.
String formatClock(num seconds) {
final total = seconds.round();