我想在我的视图中显示大量的芯片,里面有文本。由于计数很大,我想将芯片的大小减小到最小。特别是芯片的高度。如何做到这一点呢? for (EPDiaryTarget target in widget.item.targetList) {
Chip chip = new Chip(
label: new Text(
target.name,
overflow: TextOverflow.ellipsis,
style: new TextStyle(color: Colors.white),
),
backg
总共有三个文件: Home.dart、Post.dart和PostBuilder.dart
在Home.dart中,我有一个listView.seperated:
List post = [];
void initState() {
super.initState();
getPost();
}
Future getPost()async
{
//function that gets and paginates the data from the backend and adds it to the list.
}
body: ListView.separated(