简体   繁体   English

如何在 Flutter 中创建垂直滚动的 PageView?

[英]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.

相关问题 如何在MapFragment中创建Tab和PageView? - How to create Tab and PageView in MapFragment? Flutter中如何去掉PageView的前导空格? - How to remove PageView's leading space in Flutter? 如何在Flutter的PageView中正确使用GoogleMap - How to Properly use GoogleMap in PageView in Flutter 如何使用卡片水平滚动和帖子垂直滚动(回收器视图)创建自定义布局,这应该与分页一起使用 - How to create a custom layout with cards scrolling horizontal and posts scrolling vertically( recycler view ) which should work with pagination Flutter:如何使用 RaisedButton 在 PageView 中导航或使用按钮移动 pageViewController - Flutter: How to navigate in PageView with a RaisedButton or move pageViewController with button 在flutter中如何使带有平移手势的内部小部件不会与PageView发生冲突 - In flutter How to make the inner widget with pan gesture will not conflict with PageView 如何在 Flutter Pageview.builder 中插入自定义页面? - How to insert custom page in Flutter Pageview.builder? Flutter 在带有 GoogleMaps 屏幕的 PageView 上出现错误 - Flutter error on a PageView with GoogleMaps Screen 如何在颤振中垂直扩展容器小部件 - How to vertically expand container widget in flutter 在Android中垂直和水平滚动 - Scrolling vertically and horizontally in Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM