flutter - Flutter Share.sharefiles() 没有那个文件或目录,null,null,null
问题描述
我想分享我的应用程序中的图像以及描述。但是,当我使用Share.shareFiles([widget.post.imageUrl], text: widget.post.description);
它时,它给了我错误
PlatformException (PlatformException(http:baseUrl/media/posts/image_cropper_1616070403137.jpg
(No such file or directory), null, null, null))
我尝试过其他软件包,例如 image_share、内容共享。它一直给我同样的错误。如果图像位于资产目录中,则所有其他类似的 StackOverflow 问题都会涵盖这一点。但就我而言,我通过 API 获取图像。
如果您知道如何修复它,请告诉我。
解决方案
推荐阅读
- eclipse - 在阶段 (JavaFx) (Eclipse) 之间传递值
- angular - 在 IONIC 中创建新应用程序时如何解决代理错误?
- sql - 如何在 Laravel 中将所有具有共同标题的行组合在一起
- celery - 芹菜 - 检测空闲工人的信号
- javascript - 检测天气用户点击文本区域内的文本或空白
- node.js - 码头工人:npm 错误!ENOENT
- java - 运行我的 Spring Boot 应用程序时出现 UnsupportedDependencyException
- python - 在 MacOS 中通过 Selenium 上传文件(python 脚本)
- ruby-on-rails - 在哈希数组循环上创建 CSV
- laravel - `npm run dev` 导致 Windows 错误`'cross-env' 不被识别为内部或外部命令`