-1

Is there any way to show to Two Page at the same time in PageView widget? basically a number of pages need to be set dynamically like for portrait 1 for landscape 2, if not with PageView is there any alternative?

Sadman Samee
  • 107
  • 3
  • 7

1 Answers1

1

It is possible to dynamically change the number of pages. This is likely best achieved using the PageView.builder constructor of PageView. Set the itemCount to 2(or else the maximum number of pages that you'll have) and provide your pages in the builder, returning null on index 1 when you only want 1 page.

Christopher Moore
  • 15,626
  • 10
  • 42
  • 52