title: How can I go to the page when I click the button in PageView?
body: <p>made a PageView which consists of 6 pages in chapter.dart. Each page has a Text Widget and each of them includes an animal name: tiger, lion, monkey, horse, chicken, and dog in the order. And I made 3 buttons in main.dart. I just wish when I pushed the first button, I went to page[0] (tiger page) when I pushed the second button, I went to page[2] (monkey page), and when I pushed the third button, I went to page[4] (chicken page). But I totally had no idea. I think there must be some way to solve this problem, but I couldn't find it.</p>
  
  <p>I googled it, and searched it in this website, but I couldn't find it.</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  List&lt;String&gt; animal = ['tiger', 'lion', 'monkey', 'horse', 'chicken', 'dog'];
  
  class Chapter extends StatefulWidget {
    @override
    _ChapterState createState() =&gt; _ChapterState();
  }
  
  class _ChapterState extends State&lt;Chapter&gt; {
    // int currentPage;
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
          appBar: AppBar(
            title: Text('Chapter Page'),
          ),
          body: PageView.builder(
            itemCount: animal.length,
            itemBuilder: (context, index) {
              return Center(child: Text('${animal[index]} page'));
            },
          ));
    }
  }
  </code></pre>
  
  <p>Some references will be good.
  Thank you in advance.</p>