我正在开发博客应用程序,在从firebase存储中获取图像时,它会抛出错误。我编写了以下代码:
body: FirebaseAnimatedList(
query: dbRef.child('Post List'),
itemBuilder: (context, snapshot, animation, index) {
return Container(
child: FadeInImage.assetNetwork(
placeholder: 'assets/icon.png',
image: "snapshot.value['pImage']"),
);
},
)
它抛出以下错误:
assert(() {
if (widget.errorBuilder == null) {
// ignore: only_throw_errors, since we're just proxying the error.
throw error; // Ensures the error message is printed to the console.
}
return true;
调试控制台输出的图像如下: