问题
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