尝试添加
scrollDirection(水平):
SingleChildScrollView(scrollDirection: Axis.horizontal, child: Container( height: 200, child: Text( "Long text here which is longer than the container height")))
默认为垂直。
或者,如果您想拥有自己的身高,则必须更改顺序(
SingleChildScrollView在内部
Container):
Container( height: 200, child: SingleChildScrollView( child: Text( "Long text here which is longer than the container height")))



