我正在使用Flutter创建一个应用程序,但出现了错误框架。飞镖:断言:1655行pos 14:'!children.any((Widget child)=> child == null)':不正确。
我已经检查了要发送的列表,所有内容都到达了目的地,但是在尝试构建ListView时仍然出现错误
Widget _buildList(BuildContext context, List<dynamic> recepies_id, List<dynamic> recepies_diagnosis, List<dynamic> recepies_dateadded, List<dynamic> professionals_name, List<dynamic> professionals_lastnames, List<dynamic> professionals_rut, List<dynamic> professionals_speciality) {
//print(recepies_dateadded);
return ListView.builder(
padding: const EdgeInsets.only(top: 20.0),
itemCount: recepies_id.length,
itemExtent: 80.0,
itemBuilder: (BuildContext context, int index){
return ListTile(
title: Row(
children: <Widget>[
Expanded(
child: Text(professionals_name[index] +' '+ professionals_lastnames[index]),
),
Container(
child: Text(recepies_dateadded[index]),
),
],
),
onTap: () => printer(recepies_id[index], professionals_rut[index]),
);
},
);
}