Flutter溢出滚动

外部再加层SingleChildScrollView

属性

this.scrollDirection = Axis.vertical,//滚动的方向,垂直或水平
this.reverse = false,// 是否反转,如果是垂直滚动的话,reverse默认为false,表示先看上面。如果reverse为true,则先看底部。
this.padding,// 内边距
bool primary,// 是否使用默认的controller
this.physics,
this.controller,//可以控制初始的偏移量
this.child

猜你喜欢

转载自blog.csdn.net/qq_42572245/article/details/106834479