easy_scroll_to_index
a new flutter package support scroll to index for listview, gridview and nestedscrollview
demo
example:
display on ui
to display on ui, currently you can use easyscrolltoindex
.
example:
final scrolltoindexcontroller _controller = scrolltoindexcontroller();
easyscrolltoindex(
controller: _controller,
itemcount: 100,
width: 50,
height: 100,
itembuilder: (buildcontext context, int index) {
return container(
width: 50,
height: 100,
decoration: boxdecoration(
border: border.all(color: colors.black,width: 1),
),
child: center(child: text('item '+ index.tostring())),
);
},
),
Comments are closed.