new Expanded(
child: _searchResult.length != 0 || controller.text.isNotEmpty
? new ListView.builder(
itemCount: _searchResult.length,
itemBuilder: (context, int i) {
return new Card(
child: new Column(
我的身体中有一个选项卡,然后是一个列,在它里面,我调用另一个小部件类来构建一个动态的卡片列表。所有的工作似乎都很好,但我得到了这个错误。 The following message was thrown during layout:
I/flutter ( 5090): A RenderFlex overflowed by 115 pixels on the bottom. 问题是,尽管我将列表包装到一个灵活的小部件中,但列表无法滚动。下面是构建列表的代码片段。我还启用了physics: AlwaysScrollableScrollPhysics(),但仍然存在相同的问题。我知道如果我设定一