[英]How to create Vertically scrolling PageView in Flutter?
PageView by default has horizontal scrolling in flutter, but I need to create a vertically scrollable Pages through PageView, any solution?? PageView 默认在 flutter 中有水平滚动,但是我需要通过 PageView 创建一个垂直滚动的 Pages,有什么解决方案吗?
Use scrollDirection: Axis.vertical
使用
scrollDirection: Axis.vertical
PageView(
controller: pageViewController,
scrollDirection: Axis.vertical,
children: [Page1(), Page2()],
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.