share_plus 不共享文本flutter

问题描述

我正在尝试通过 share_plus.dart 插件将共享小部件实现为屏幕截图。它可以工作,但是它不会将字符串文本附加到小部件。我该如何解决

Future<void> shareReview() async {
final image = await controller.capture();
saveAndShare(image);
}

void saveAndShare(Uint8List bytes) async {
final directory = await getApplicationDocumentsDirectory();
final image = File('${directory.path}/review.png');
image.writeAsBytesSync(bytes);

final text = 'blahblahblahbalh';
await Share.shareFiles([image.path],text: text);
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)