new ListView(
children: [
new SizedBox(
height: 100.0,
child: ListView(
scrollDirection: Axis.horizontal,
children: <Widget>[
new Text("hi"),
new Text("hi"),
new Text("hi"),
],
),
),
],
),
Run Code Online (Sandbox Code Playgroud)
我使用了大小的盒子,似乎仍然有错误.
这是我的小部件树:SingleChildScrollView - > Column - > children
Performing hot reload... flutter: ??? EXCEPTION CAUGHT BY RENDERING LIBRARY ?????????????????????????????????????????????????????????? flutter: The following assertion was thrown during performResize(): flutter: Vertical viewport was given unbounded height. flutter: Viewports expand in the scrolling direction to fill their container.In this case, a vertical flutter: viewport was given an unlimited …Run Code Online (Sandbox Code Playgroud)