I am trying to achieve the following design. The first issue is when using pageview the current index item appears to be in the centre. I want a list like behaviour. But want to keep track of the current index and upcoming index so I could use an animated Container to make the animation.
Asked
Active
Viewed 47 times
1
-
you can use normal `ScrollController` for getting the scrolling position – pskink Sep 26 '20 at 09:16
-
Thank you for the response. But I actually need the current index so I could Apply animation on the third Item when it comes to screen. Just like the reference. – Hassam Talha Sep 26 '20 at 09:43
-
do you have every item with the same width? if so, simply divide the scroll position by item width – pskink Sep 26 '20 at 14:14