mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-02 22:26:52 +02:00
refactor(ui): consolidate file feedback and shared display helpers
This commit is contained in:
1 parent
c5789df87d
commit
377710ec22
17 files changed
+77
-164
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user