stacked page view
hi! this package will create stacked page view in your flutter app. it’s as lightweight as it can get.
just wrap it between your pageview builder and the iterable children like the code below.
pageview.builder(
itemcount: 10,
scrolldirection: axis.vertical,
controller: pagecontroller,
itembuilder: (context, index) {
return stackpageview(
controller: pagecontroller,
index: index,
child: container(
color: (colors..shuffle()).first,
child: center(
child: text(
'$index',
style: textstyle(
color: colors.white,
fontsize: 25,
),
),
),
),
);
},
)
Comments are closed.