如何在没有 go-flutter 的情况下在 flutter 桌面中使用 image_picker 插件 [英] How to use image_picker plugin in flutter desktop without go-flutter

查看:89
本文介绍了如何在没有 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.

推荐答案

有两个选项:

  • 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆