flutter 图片为空报错

imgpath != null ? Image.network(imgpath) : Container()

  如果不判断imgpath 为空 network 内的url 为空就会报错

原文地址:https://www.cnblogs.com/wupeng88/p/10825122.html