pageView默认是可以左右滑动的,如果想禁止滑动加上这个参数就可以
physics: NeverScrollableScrollPhysics()
PageView(
physics: NeverScrollableScrollPhysics(), //禁止滑动
controller: _controller,
children: <Widget>[Page1(), Page2(), Page3()],
),
pageView默认是可以左右滑动的,如果想禁止滑动加上这个参数就可以
physics: NeverScrollableScrollPhysics()
PageView(
physics: NeverScrollableScrollPhysics(), //禁止滑动
controller: _controller,
children: <Widget>[Page1(), Page2(), Page3()],
),