简体   繁体   English

如何在flutter-Windows-application中打开windows explorer?

[英]How to open windows explorer in flutter-Windows-application?

The question is pretty straight forward: I develop a windows application with flutter (shame on me) and I want to open the Windows "file explorer" with a path when a button is pressed.问题很简单:我用 flutter 开发了一个 windows 应用程序(我真丢脸),我想在按下按钮时打开 Windows “文件资源管理器”。 Another great thing would be to open the windows file-picker and get a callback from that, but the other problem seems to be much easier.另一个很棒的事情是打开 windows 文件选择器并从中获取回调,但另一个问题似乎要容易得多。

Thanks for your help谢谢你的帮助

You can add the file_picker plugin and call您可以添加file_picker插件并调用

FilePickerResult? result = await FilePicker.platform.pickFiles();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM