使 flutter web 图像小部件可点击
Make flutter web Image widgets clickable
如何从 flutter web 下载图片?
图像不是 clickable/dragable 并且右键单击时不显示上下文菜单,例如“另存为”。
网络实施 - http://watools.xyz/ankush_apis/flutter_projects/youtube/#/
是否有替代图像小部件,使其 网络可点击?
喜欢Text and SelectableText。
也许是 属性,一个 pub 包?
任何答案表示赞赏。
您是否尝试使用 InkWell 小部件?支持手势,已经实现了可点击效果
InkWell(
child: Image.network(
'https://i.picsum.photos/id/9/250/250.jpg?hmac=tqDH5wEWHDN76mBIWEPzg1in6egMl49qZeguSaH9_VI'),
onTap: () {
showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text('Options'),
actions: [
TextButton(
child: Text('Save image'),
onPressed: () {
//Code for download the image
},
),
],
),
);
},
),
如何从 flutter web 下载图片?
图像不是 clickable/dragable 并且右键单击时不显示上下文菜单,例如“另存为”。 网络实施 - http://watools.xyz/ankush_apis/flutter_projects/youtube/#/
是否有替代图像小部件,使其 网络可点击? 喜欢Text and SelectableText。 也许是 属性,一个 pub 包? 任何答案表示赞赏。
您是否尝试使用 InkWell 小部件?支持手势,已经实现了可点击效果
InkWell(
child: Image.network(
'https://i.picsum.photos/id/9/250/250.jpg?hmac=tqDH5wEWHDN76mBIWEPzg1in6egMl49qZeguSaH9_VI'),
onTap: () {
showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text('Options'),
actions: [
TextButton(
child: Text('Save image'),
onPressed: () {
//Code for download the image
},
),
],
),
);
},
),