【发布时间】:2020-05-30 07:57:02
【问题描述】:
在此之前,我的代码没有错误。在我将颤振升级到最新版本之后。然后我在 if 条件下得到错误
Column(
children: <Widget>[
if(imageFile != null) ...[
Center(
.....
),
]
],
),
这是我的错误:
This requires the 'spread-collections' experiment to be enabled.
Try enabling this experiment by adding it to the command line when compiling and running.
有人知道如何解决这个错误吗?
【问题讨论】:
-
您是否将图像显示为 Center() 列表?
标签: flutter