【问题标题】:How to create Vertically scrolling PageView in Flutter?如何在 Flutter 中创建垂直滚动的 PageView?
【发布时间】:2020-02-04 14:36:40
【问题描述】:

默认情况下PageView在flutter中有水平滚动,但是我需要通过PageView创建一个垂直滚动的Pages,有什么解决办法吗??

【问题讨论】:

标签: android ios user-interface flutter dart


【解决方案1】:

使用scrollDirection: Axis.vertical

PageView(
    controller: pageViewController,
    scrollDirection: Axis.vertical,
    children: [Page1(), Page2(),],
)

【讨论】:

    猜你喜欢
    • 2020-02-14
    • 2018-12-18
    • 1970-01-01
    • 2021-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-24
    • 1970-01-01
    相关资源
    最近更新 更多