如何制作按钮固定在CustomScrollView底部的“粘滞”
像截图一样如何实现 https://i.stack.imgur.com/RDCn9.png
列表视图在 ExpansionTile 中不起作用
我试图在 ExpansionTile 中显示一个 listview.builder 但它抛出了一些异常
Card(
child: ExpansionTile(
leading: Icon(
Icons.stars,
color: Colors.pinkAccent,
),
title: Text('Reviews',
style: Theme.of(context).textTheme.title,
),
children: [
ListView.builder(
itemCount: 5,
itemBuilder: (_, i) {
return (Text('item $i'));
})
],
),
),
Run Code Online (Sandbox Code Playgroud)
我想像这样实现https://imgur.com/a/0lubABC
??? EXCEPTION CAUGHT BY RENDERING LIBRARY ??????????????????????????????????????????????????????????
I/flutter ( 8182): The following assertion was thrown during performResize():
I/flutter ( 8182): Vertical viewport was given unbounded height.
I/flutter ( 8182): Viewports expand in the scrolling direction to fill their container.In this …Run Code Online (Sandbox Code Playgroud)