imgpath != null ? Image.network(imgpath) : Container()
如果不判断imgpath 为空 network 内的url 为空就会报错
Powered by: 博客园 Copyright © 2024 诗意的活着 Powered by .NET 8.0 on Kubernetes