简体   繁体   English

Flutter 具有两行或多行无限滚动的水平 ListView

[英]Flutter Horizontal ListView with Two or More Lines with infinite Scroll

I´ve tried several times but it seems that the ListView.Builder with scrollDirection: Axis.horizontal, only has space for one Line.我已经尝试了几次,但似乎带有 scrollDirection: Axis.horizontal 的 ListView.Builder,只有一条线的空间。

Is is possible to make it into two or more Lines?是否有可能将其分为两条或更多条线路?

在此处输入图像描述

Yes, you need to split your component and add a second listview是的,您需要拆分组件并添加第二个列表视图

You may want to try this plugin: Flutter Staggered Grid View你可能想试试这个插件: Flutter 交错网格视图

In your case you could make something like this but horizontally:在你的情况下,你可以做这样的事情,但水平:

Flutter 交错网格视图

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

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