'can i make infinite loop for pageview builder?
i need to scroll pageview builder from both site..
if item is last again show first item.. or if item is first then in left side it will be show first item. like round list.
here is my code
_pageController = PageController(
initialPage: currentPage, keepPage: true, viewportFraction: 0.5);
PageView.builder(
itemCount: data.Genre.length,
onPageChanged: (value) {
setState(() {
currentPage = value;
});
print(builder.Genre[currentPage2].title);
},
controller: _pageController,
itemBuilder: (context, index) {
return animateItemBuilder(index);
}),
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


