I have few images to display within a SizedBox, which is wrapped around a SingleChildScrollView contained in a Row widget. At the moment it is able to display fine, but stopping in between images during swiping. What I want to achieve is whenever a drag is detected, Left or Right, move to next or previous image and centered the image.
Is there a way to achieve it? should I replace it with GestureDetector, but I can't seem to wrap my head around how when drag is detected a given distance is moved.
Overall Code layout is as follow:
SizedBox:
SingleChildScrollView
Row:
Image_1
Image_2
...