How to include two items as a page main content in pageview — Flutter


Is it possible to use PageView to reach the following work?

I’d like to use two containers as the main content for a page in PageView.

I’ve tried to adjust viewPortFraction but it doesn’t work as I expected.

The following effect is used by Apple App store and Prime Video and many apps.


enter image description here

enter image description here


You could try to use an horizontal ListView with PageScrollPhysics() In the physics param.

Answered By – jamesblasco

Answer Checked By – Gilberto Lyons (FlutterFixes Admin)

Leave a Reply

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