【发布时间】:2020-09-18 20:48:58
【问题描述】:
我想将此 ListView 转换为 ListView.builder,因为我需要索引。有人可以告诉我如何 cnvert thsi ListView 吗?`感谢您的帮助 :)
return new ListView(
children: snapshot.data.documents.map((DocumentSnapshot document) {
return new ListTile(
title: new Text(document['name']),
);
}).toList(),
);
【问题讨论】:
标签: android listview flutter dart