👽 Update the indexed file api calls

This commit is contained in:
2025-11-15 03:06:41 +08:00
parent 74fa2215a6
commit f94f80c375
5 changed files with 26 additions and 38 deletions

View File

@@ -267,7 +267,7 @@ class FileListView extends HookConsumerWidget {
),
),
title: Text(
folderItem.folder.name,
folderItem.folderName,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
@@ -276,8 +276,8 @@ class FileListView extends HookConsumerWidget {
// Navigate to folder
final newPath =
currentPath.value == '/'
? '/${folderItem.folder.name}'
: '${currentPath.value}/${folderItem.folder.name}';
? '/${folderItem.folderName}'
: '${currentPath.value}/${folderItem.folderName}';
currentPath.value = newPath;
},
),
@@ -300,6 +300,7 @@ class FileListView extends HookConsumerWidget {
child: CustomScrollView(
slivers: [
bodyWidget,
const SliverGap(12),
if (mode.value == FileListMode.normal && currentPath.value == '/')
SliverToBoxAdapter(child: _buildUnindexedFilesEntry(ref)),
],