我想让一个容器
的内容可滚动,我认为我可能误用了SingleChildScrollView
小部件。
如果我希望其内容可滚动,将SingleChildScrollView
放在Container
的内部作为其子组件是可以的吗?
谢谢。
Hero(
tag: this.widget.id,
child: Material(
type: MaterialType.transparency,
child: Center(
child: Container(
margin: EdgeInsets.only(top: MediaQuery.of(context).size.height * 0.25),
height: MediaQuery.of(context).size.height * 0.75,
width: MediaQuery.of(context).size.width * 0.95,
decoration: cardDecoration,
child: SingleChildScrollView(
child: ContentTripExtract(this.widget.i, false) // a column of texts and containers
),
),
),
),
),