📜  行的子项不得包含任何空值,但在索引 1 处发现空值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:14.695000             🧑  作者: Mango

代码示例1
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,]