【发布时间】:2021-11-06 18:49:37
【问题描述】:
我一直在尝试将我的应用程序转换为新的 Flutter 新版本,但出现此错误 The argument type Object? can't be assigned to the parameter type List that can't be fix.... 可以有人帮我解决这个问题
list() {
return Expanded(
child: FutureBuilder(
future: employees,
builder: (context, snapshot) {
if (snapshot.hasData) {
return dataTable(List<Url>.from(snapshot.data));
}
if (null == snapshot.data || snapshot.data == 0) {
return Text("Tiada Data");
}
return CircularProgressIndicator();
},
),
);
}
【问题讨论】:
标签: flutter datatable flutter-futurebuilder