📅  最后修改于: 2022-03-11 14:59:14.695000             🧑  作者: Mango
You need to return Container() if buttonImage is null
Row widget do not know how to render null
you must tell Row widget to render empty content if it's null
children: [buttonImage == null ? Container() : buttonImage,]