如何使用Flutter Desktop打开windows资源管理器?

发布于 2025-01-14 18:55:09 字数 178 浏览 0 评论 0原文

我想打开 Windows 资源管理器应用程序,而不是打开对话框。例如,Edge 在文件夹中的显示。 输入图像描述这里

I want to open the windows explorer application, not open a dialog. for example, the Edge's display in a folder.
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

花心好男孩 2025-01-21 18:55:09

您可以将目录的 file: URL 传递给 url_launcher。例如:

launch('file://C:');

You can pass file: URLs for a directory to url_launcher. For instance:

launch('file://C:');
定格我的天空 2025-01-21 18:55:09

有一个插件 open_file: open_file: ^3.2.1

import 'package:open_file/open_file.dart';
import 'package:path_provider/path_provider.dart';
await OpenFile.open('$dir\\');

There is a plugin open_file: open_file: ^3.2.1

import 'package:open_file/open_file.dart';
import 'package:path_provider/path_provider.dart';
await OpenFile.open('$dir\\');
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文