5

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.

Community
  • 1
  • 1
Vivek
  • 113
  • 1
  • 12
  • 1
    For those who look for this, please follow this feature request https://github.com/flutter/flutter/issues/52014 – Vivek Jun 03 '20 at 10:16

0 Answers0