如何在没有 go-flutter 的情况下在 flutter 桌面中使用 image_picker 插件 [英] How to use image_picker plugin in flutter desktop without go-flutter
本文介绍了如何在没有 go-flutter 的情况下在 flutter 桌面中使用 image_picker 插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在我的 Flutter 桌面项目中使用 image_picker 插件,但我认为该插件没有适用于 Windows 桌面应用程序的实现.有人对此有解决方案吗?Ps:我想使用 go-flutter 和悬停.
Am trying to user image_picker plugin in my flutter desktop project, but i think there is no implementation for this plugin that work with windows desktop app. Did someone have a solution for that ? Ps : i want use go-flutter and hover.
推荐答案
有两个选项:
- 实施适用于 Windows 的插件.
- 使用FDE 的 file_chooser 插件(一次 Windows 实现领域)并为图像类型设置文件类型过滤器你想允许.
- Implement the plugin for Windows.
- Use FDE's file_chooser plugin (once the Windows implementation lands) and set a file type filter for the image types you want to allow.
这篇关于如何在没有 go-flutter 的情况下在 flutter 桌面中使用 image_picker 插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文