Swipe through list items in detail of each item – Flutter

Issue

I have rendered a list of items on a page. I can tap the item to view its detail, How do I swipe left and right in the list item detail to go to the next item detail. Attaching images for more explanation.

This is the main list

This is item detail on tap of list item

What I want is to go to the next item in the list by swiping through the list detail.

Solution

Jon Mountjoy is right, just use PageView in detail page, page view items is your list items, when you click the item in the list view, pass index and in next detail page view page, jump to that index item or assign the initial index of controller to that selected index.

Answered By – Jim

Answer Checked By – Timothy Miller (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *