android - 如何在 Flutter 中创建垂直滚动的 PageView?
问题描述
默认情况下,PageView 在颤动中具有水平滚动,但我需要通过 PageView 创建一个垂直可滚动的页面,有什么解决方案吗?
解决方案
利用scrollDirection: Axis.vertical
PageView(
controller: pageViewController,
scrollDirection: Axis.vertical,
children: [Page1(), Page2(),],
)
推荐阅读
- android - 具有不可序列化对象的可序列化接口
- swift - 没有这样的模块'InputBarAccessoryView'
- google-apps-script - 谷歌脚本表“单元格超出范围”
- android-studio - 带有Android的Website2APK
- python - 如何在 jinja 中显示列表的所有结果?
- swift - 如何禁用 NSTextField 并使其不可编辑?[isEditable 属性不起作用]
- aws-lambda - 如何抑制 aws lambda cli 输出
- python - 如何使用 C++ 编译 Cython 以获取共享对象 (*.so) 文件
- nosql - 用于多个同时连接的 NoSQL
- networking - 如何在 hazelcast 中创建共享数据结构的异步备份?