Flutter: How to left align View Port in PageView

Viewed 1126

How it works

When we set viewportFraction, the view gets center aligned.

If viewportFraction sets

PageView(
   viewportFraction: 0.8
)

Center-Aligned view port

How I expect

But what I need is the view to start with left-aligned like how playstore dashboard works.

Left-Aligned view port

The above screenshot has taken from the Google Play Store.

For more info

How can I achieve this?

While doing a coding walkthrough, I've never found a way to center align it. I just created a new custom class by just copying the page_view class.

0 Answers
Related