简体   繁体   English

如何在Flutter中创建水平滚动垂直列表视图?

[英]how to create horizontally scrollable vertical listview in Flutter?

i want to create a list view on Flutter which can be scrolled vertically as well as horizontally. 我想在Flutter上创建一个可以垂直和水平滚动的列表视图。

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. 像在android中一样,我们可以在水平滚动视图上构建回收器视图,然后允许我们垂直滚动以及水平滚动。

Is there any solution for Flutter to behave same. 有什么解决办法可以使Flutter表现出相同的效果。

I have tried nestedScroll view, customscroll view, nested Listview and was not able to achieve what i wanted. 我尝试过nestedScroll视图,customscroll视图,嵌套Listview,但无法实现我想要的。

If list view cannot do this please suggest any other widget with this property. 如果列表视图无法执行此操作,请建议使用此属性的任何其他小部件。

Please anybody help me with the solution. 请任何人帮助我解决方案。 Thanks in advance☺ 在此先感谢☺

Use Data Table widget. 使用数据表窗口小部件。

Two dimensional scrolling is supported by flutter using this widget 使用此小部件的Flutter支持二维滚动

Demo using Flutter Gallery App 使用Flutter Gallery App进行演示 演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM