You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to show 3 items in swipper so I adjusted na viewportFraction/itemWidth to .6 but does not seem to work.
Just wanted to show 3 items like the default swipper while retaining the swipe animation.
new Swiper(
layout: SwiperLayout.CUSTOM,
customLayoutOption: new CustomLayoutOption(
startIndex: -1,
stateCount: 3
).addRotate([
-45.0/180,
0.0,
45.0/180
]).addTranslate([
new Offset(-370.0, -40.0),
new Offset(0.0, 0.0),
new Offset(370.0, -40.0)
]),
itemWidth: 300.0,
itemHeight: 200.0,
itemBuilder: (context, index) {
return new Container(
color: Colors.grey,
child: new Center(
child: new Text("$index"),
),
);
},
viewportFraction: 0.6,
itemCount: 10)
The text was updated successfully, but these errors were encountered:
I wanted to show 3 items in swipper so I adjusted na viewportFraction/itemWidth to .6 but does not seem to work.
Just wanted to show 3 items like the default swipper while retaining the swipe animation.
The text was updated successfully, but these errors were encountered: