Flutter TabBar TabBarView禁止左右滑动
要在Flutter TabBar TabBarView中禁止左右滑动的话我们只需要配置
physics: NeverScrollableScrollPhysics()
详细代码:
TabBarView(
physics: NeverScrollableScrollPhysics(), //禁止滑动
children: <Widget>[
ProductContentFirst(this._productContentList),
ProductContentSecond(this._productContentList),
ProductContentThird()
],
)