[英]How to create Vertically scrolling PageView in Flutter?
PageView 默認在 flutter 中有水平滾動,但是我需要通過 PageView 創建一個垂直滾動的 Pages,有什么解決方案嗎?
使用scrollDirection: Axis.vertical
PageView(
controller: pageViewController,
scrollDirection: Axis.vertical,
children: [Page1(), Page2()],
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.