我想在BoxDecotion中展示网络的图像.但它显示了错误
"无法将参数类型‘image’分配给参数类型‘imageProvider’".
这是代码,在这里我试图显示一个来自网络的图像,里面的盒子装饰.请判断一下,一定要让我知道我在这个代码中哪里错了.
decoration: new BoxDecoration(
image: new DecorationImage(image: new Image.network("http://myurl.com/"+productList[index].thumbnail),
fit: BoxFit.cover)
),