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

+1 -4
View File
@@ -52,9 +52,6 @@ final Map<String, IconData> _iconCache = Map.fromEntries(
),
);
const folderIcon = Gopeed.folder;
const folderBtIcon = Gopeed.folder_bt;
String fileExt(String? name) {
if (name == null) {
return '';
@@ -71,7 +68,7 @@ String fileExt(String? name) {
IconData fileIcon(String? name,
{bool isFolder = false, bool isBitTorrent = false}) {
if (isFolder) {
return isBitTorrent ? folderBtIcon : folderIcon;
return isBitTorrent ? Gopeed.folder_bt : Gopeed.folder;
}
final ext = fileExt(name);