我正在尝试使用Dart / Flutter小部件垂直滚动来创建列表自定义卡片:enter image description here创建堆栈视图后,我不知道为其垂直添加滚动:enter image description here请帮我。谢谢。
Swiper(
scrollDirection: Axis.vertical,
itemBuilder: (BuildContext context, int index) {
//here you can return your each widget based on index, all the scrolling, displaying stacked layout is handled by the plugin.
return Image.network(
"http://via.placeholder.com/288x188",
fit: BoxFit.fill,
);
},
itemCount: 10,
itemWidth: 300.0,
layout: SwiperLayout.STACK,
)