如何在Flutter中创建水平可滚动的垂直ListView? [英] how to create horizontally scrollable vertical listview in Flutter?
问题描述
我想在Flutter上创建一个列表视图,该列表视图可以垂直和水平滚动.
i want to create a list view on Flutter which can be scrolled vertically as well as horizontally.
就像在android中一样,我们可以在水平滚动视图上构建一个回收器视图,然后它允许我们垂直和水平滚动.
Like in android we can build a recycler view over a horizontal scroll view then it allows us to scroll vertically as well as horizontally.
有什么解决办法可以使Flutter表现出相同的效果.
Is there any solution for Flutter to behave same.
我尝试过nestedScroll视图,customscroll视图,嵌套Listview,但无法实现我想要的功能.
I have tried nestedScroll view, customscroll view, nested Listview and was not able to achieve what i wanted.
如果列表视图无法执行此操作,请建议使用此属性的任何其他小部件.
If list view cannot do this please suggest any other widget with this property.
请任何人帮助我解决问题.预先感谢☺
Please anybody help me with the solution. Thanks in advance☺
推荐答案
使用数据表小部件.
使用此小部件的Flutter支持二维滚动
Two dimensional scrolling is supported by flutter using this widget
使用 Flutter Gallery App进行演示
这篇关于如何在Flutter中创建水平可滚动的垂直ListView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!