title: How do I set the initial page of PageView in Flutter?
body: <p>I have a <code>PageView</code> with four pages in it. I want to start on the third page. That means there are two pages available when the user scrolls up and one page when the user scrolls down.</p>
  
  <p>I tried:</p>
  
  <pre><code>home: PageView(
     controller: MyPageController(),
     children: [Page1(), Page2(), Page3(), Page4()],
     scrollDirection: Axis.vertical,
  ),
  </code></pre>
  
  <p>With:</p>
  
  <pre><code>class MyPageController extends PageController {
     @override
     int get initialPage =&gt; 3;
  }
  </code></pre>
  
  <p>Unfortunately, that doesn't help me. </p>