mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-17 13:53:41 +00:00
feat: file tree view responsive support (#856)
This commit is contained in:
6 files changed
+65
-59
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user