title: Flutter - How to pass data between pages in PageView Widget?
body: <p>I have a PageView widget like below:</p>
  
  <pre><code>Widget buildPageView() {
      return PageView(
        controller: pageController,
  
        onPageChanged: (index) {
          pageChanged(index);
        },
  
        children: &lt;Widget&gt;[
          AddPropertyDescription(pageController: pageController,),
          AddPropertyMedia(pageController: pageController),
          AddPropertyLocation(pageController: pageController),
          AddPropertyDetails(pageController: pageController),
          AddPropertyAmenities(pageController: pageController)
        ],
      );
    }
  </code></pre>
  
  <p>I have five pages as a Widget in my PageView, now I want to pass data from one page to another till the last page when page changed.....</p>
  
  <p>I have taken the <code>Next</code> button in each Page, In the Next button onTap() I simply increase the page number to slide to next page like below</p>
  
  <pre><code> onTap: () async{
                    pageController.animateToPage(
                      1,
                      duration: Duration(milliseconds: 300),
                      curve: Curves.linear,
                    );
                }, 
  </code></pre>
  
  <p>When pressing the next button and go to the next screen I want to carry data and pass it to the next page.</p>
  
  <p>Is there anyone here who could have faced the same problem in flutter.....</p>
  
  <p>Please guide me on how can I achieve this.......</p>