我想与说明一起分享我的应用中的图片。但是,当我使用 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 获取图像的。
如果你知道如何修复它,请告诉我。