fix globalKey / handle Windows drive fd type / add un/select all

This commit is contained in:
csf
2022-10-19 10:52:29 +09:00
parent 0c976a6644
commit 0bced44126
25 changed files with 144 additions and 54 deletions

View File

@@ -1031,7 +1031,9 @@ class Entry {
bool get isFile => entryType > 3;
bool get isDirectory => entryType <= 3;
bool get isDirectory => entryType < 3;
bool get isDrive => entryType == 3;
DateTime lastModified() {
return DateTime.fromMillisecondsSinceEpoch(modifiedTime * 1000);
@@ -1169,6 +1171,11 @@ class SelectedItems {
_items.clear();
_isLocal = null;
}
void selectAll(List<Entry> entries) {
_items.clear();
_items.addAll(entries);
}
}
// code from file_manager pkg after edit