【发布时间】:2021-04-12 10:49:11
【问题描述】:
我使用此代码从 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.
【问题讨论】:
标签: php android ios mysql flutter