[英]how to share image with text in flutter on whatsapp or else?
我使用此代碼從 MySQL 數據庫中獲取圖像並將它們顯示在容器上。 你能指導我如何用文字分享這張圖片嗎? 或者我需要使用什么插件。
Image image;
showImage(String image){
return Image.memory(base64.decode(image), fit: BoxFit.fill,);
}
//show in Container
Container(
padding: EdgeInsets.all(10),
width: MediaQuery.of(context).size.width * 0.8,
height: MediaQuery.of(context).size.height * 0.3,
color: Colors.white,
child: showImage(widget.product_detail_pictue),
),
child: image = showImage(product.image)),
it also show image but failed to share.
您可以使用共享package。`
它允許您通過平台的共享對話框共享 Flutter 應用程序中的內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.