Categories
Development

scrollcontroller not attached to any scroll views (Swiper)

I’m using a Swiper package to achieve a carousel effect on my images. I’m trying to update the current index of my Swiper by passing a callback function to it’s child. but when I try to call the function, it returns this ” scrollcontroller not attached ” error. I’ve added a SwiperController but still the […]

Categories
Development

Listview go to next item after timer expires

I want to change the index of my parent widget which is a Listview.builder after the timer expires. Basically, it would go to the next item of the list. here is the code from my parent widget: EDIT I posted the wrong code. Here is the right code for the parent Widget build(BuildContext context) { […]