title: Flutter carousel image slider open separate page during on tap event is called
body: <p>Im new to flutter. I would like to ask a question about my code. I have take a look on youtube and some google tutorial on this inkwell and on tap function to open new class activity on flutter.But the result is, when the image is tapped it open different image screen but they share same class file.</p>
  
  <p>How can I have a separate page for different image click. For example,
  I have five image in my flutter carousel slider.
  Image 1 will open sliderpage 1. Image 2 will open sliderpage 2 and so on.Means they are on separate page instead of different image open same page but only show different images. Im trying this tutorial but they do have same page but different images displayed after on tap event is called. url <a href="https://www.youtube.com/watch?v=l9XOUoJsdy4" rel="nofollow noreferrer">https://www.youtube.com/watch?v=l9XOUoJsdy4</a></p>
  
  <pre><code>class _HomePageState extends State&lt;HomePage&gt; {
    @override
    Widget build(BuildContext context) {
     Widget image_carousel = new Container(
        height: 345.0,
  
        child: new Carousel(
          boxFit: BoxFit.fill,
          images: [
            AssetImage('assets/s7.jpg'),
            AssetImage('assets/s3.jpg'),
            AssetImage('assets/s5.jpg'),
            AssetImage('assets/s2.jpg'),
            AssetImage('assets/s4.jpg'),
          ],
          autoplay: true,
          animationCurve: Curves.fastOutSlowIn,
          animationDuration: Duration(milliseconds: 500),
          dotColor: Colors.red[50],
          dotSize: 4.0,
          indicatorBgPadding: 2.0,
        ),
  
  
      );
  
      return Scaffold(
  
        body: new Column(
          children: &lt;Widget&gt;[
            image_carousel,
  
         //grid view
         Container(
           height:163.0,
           child: Products(),
         )
  
  
          ],
        ),
      );
    }
  }
  </code></pre>
  
  <p>On this code, this code just display carousel image without any event on click is done , I was expecting to have different page routing by on tap event is happen when image assets is clicked and navigate to different pages. </p>