feat: add file panel column view and folder sizes

This commit is contained in:
ngfchl
2026-07-18 11:58:47 +08:00
parent 4b39bc1eae
commit 01a536af1b
5 changed files with 472 additions and 22 deletions
+10 -11
View File
@@ -168,19 +168,18 @@ class FileListTile extends StatelessWidget {
),
),
// File size
if (!file.isDirectory)
SizedBox(
width: 80,
child: Text(
file.formattedSize,
textAlign: TextAlign.right,
style: TextStyle(
fontSize: 12,
color: theme.colorScheme.mutedForeground,
),
// Folder sizes are enriched in the background just like files.
SizedBox(
width: 80,
child: Text(
file.formattedSize,
textAlign: TextAlign.right,
style: TextStyle(
fontSize: 12,
color: theme.colorScheme.mutedForeground,
),
),
),
const SizedBox(width: 12),