imgpath != null ? Image.network(imgpath) : Container()
如果不判断imgpath 为空 network 内的url 为空就会报错
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3