Flutter 如何在Flatter中发送来自whatsapp的图像

Flutter 如何在Flatter中发送来自whatsapp的图像,flutter,Flutter,我是个新手。我想从我的应用程序中打开(仅打开)WhatsApp并发送数据(包含文本和图像)以选择联系人。我可以使用URL launch在Whatsapp中发送文本,但仍然坚持在Whatsapp中打开图像。我正在使用下面的代码 如何从我的应用程序打开WhatsApp并与联系人共享图像和文本 _launchURL() async { const url = "whatsapp://send?text=' + state.product.title + "\n"

我是个新手。我想从我的应用程序中打开(仅打开)WhatsApp并发送数据(包含文本和图像)以选择联系人。我可以使用URL launch在Whatsapp中发送文本,但仍然坚持在Whatsapp中打开图像。我正在使用下面的代码

如何从我的应用程序打开WhatsApp并与联系人共享图像和文本

_launchURL() async {
    const url = "whatsapp://send?text=' + state.product.title + "\n" + state.product.description + "\n" + "Price: \$" + state.product.price.toString() ";
    if (await canLaunch(url)) {
      await launch(url);
    }
  }
这个软件包可能会有帮助