how to create horizontally scrollable vertical listview in Flutter?

时光总嘲笑我的痴心妄想 提交于 2021-01-29 11:22:33

问题


i want to create a list view on Flutter which can be scrolled vertically as well as horizontally.

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.

Is there any solution for Flutter to behave same.

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☺


回答1:


Use Data Table widget.

Two dimensional scrolling is supported by flutter using this widget

Demo using Flutter Gallery App



来源:https://stackoverflow.com/questions/57554437/how-to-create-horizontally-scrollable-vertical-listview-in-flutter

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!