implemented file thumbnails and enhanced file type icons, added reusable FileLeading widget, and updated search to support previews
This commit is contained in:
@@ -19,6 +19,7 @@ import '../../../widget/placeholder_view.dart';
|
||||
import '../files/data/sort_options.dart';
|
||||
import '../files/files_upload_dialog.dart';
|
||||
import '../files/widgets/add_file_menu.dart';
|
||||
import '../files/widgets/file_leading.dart';
|
||||
import '../files/widgets/files_sort_actions.dart';
|
||||
|
||||
typedef _FolderConfirmedCallback =
|
||||
@@ -181,7 +182,7 @@ class _ShareFolderPickerViewState extends State<_ShareFolderPickerView> {
|
||||
final entry = entries[i];
|
||||
if (entry.isDirectory) {
|
||||
return ListTile(
|
||||
leading: const Icon(Icons.folder_outlined),
|
||||
leading: FileLeading(file: entry),
|
||||
title: Text(entry.name),
|
||||
trailing: const Icon(Icons.chevron_right),
|
||||
onTap: () => _enter(bloc, state.currentPath, entry.name),
|
||||
@@ -189,7 +190,7 @@ class _ShareFolderPickerViewState extends State<_ShareFolderPickerView> {
|
||||
}
|
||||
return ListTile(
|
||||
enabled: false,
|
||||
leading: const Icon(Icons.description_outlined),
|
||||
leading: FileLeading(file: entry),
|
||||
title: Text(entry.name),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user