feat: add finder style file column browser

This commit is contained in:
ngfchl
2026-07-18 14:46:51 +08:00
parent f04cf2f8c7
commit be3324e68b
2 changed files with 614 additions and 14 deletions
+10
View File
@@ -462,6 +462,16 @@ class FileNotifier extends StateNotifier<FileState> {
loadFiles(parentID: parentID);
}
Future<void> navigateToFolderPath(List<CloudFile> path) async {
final newPath = List<CloudFile>.unmodifiable(path);
state = state.copyWith(
folderPath: newPath,
currentPage: 0,
selectedIDs: {},
);
await loadFiles(parentID: newPath.isEmpty ? null : newPath.last.id);
}
void toggleSelection(String id) {
final newSelected = Set<String>.from(state.selectedIDs);
if (newSelected.contains(id)) {