feat: file tree view responsive support (#856)

This commit is contained in:
Levi authored and GitHub committed 2024-12-27 11:34:56 +08:00
1 parent f5891ee03d
commit 727b7edb84
6 files changed
+65 -59

No files matched your search

@@ -64,9 +64,8 @@ class TaskFilesView extends GetView<TaskFilesController> {
[meta.opts.path, meta.res!.name, fileRelativePath]);
final fileName = basename(filePath);
return ListTile(
leading: file.isDirectory
? const Icon(folderIcon)
: Icon(fileIcon(fileName)),
leading:
Icon(fileIcon(fileName, isFolder: file.isDirectory)),
title: Text(fileName),
subtitle: file.isDirectory
? Text('items'.trParams({