|
|
|
@ -56,15 +56,6 @@ class _FileExplorerState extends State<FileExplorer> {
@@ -56,15 +56,6 @@ class _FileExplorerState extends State<FileExplorer> {
|
|
|
|
|
final fileProvider = Provider.of<FileProvider>(context, listen: false); |
|
|
|
|
if (node.isDirectory) { |
|
|
|
|
await fileProvider.loadDirectoryContents(node); |
|
|
|
|
// 添加文件夹双击回调 |
|
|
|
|
if (widget.onFolderDoubleTap != null) { |
|
|
|
|
widget.onFolderDoubleTap!(node.path); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// 添加文件双击回调 |
|
|
|
|
if (widget.onFileDoubleTap != null) { |
|
|
|
|
widget.onFileDoubleTap!(node.path); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|