title: How to build a retrieved data from a form page to another page using list view builder
body: <p>Hi there I’m new to flutter and this app takes an input from a user and outputs a list with the value from the text field all in one page but what I wanted was it to output the list view builder in another page with the value from the text field in another page I’ll be greatful if anyone can help,this is the code:-</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  class Demo extends StatefulWidget {
    @override
    _DemoState createState() =&gt; new _DemoState();
  }
  
  class _DemoState extends State&lt;Demo&gt; {
    List&lt;String&gt; _items = new List(); // to store comments
  
    final myController = TextEditingController();
  
    void _addComment() {
      if (myController.text.isNotEmpty) {
        // check if the comments text input is not empty
        setState(() {
          _items.add(myController.text); // add new commnet to the existing list
        });
  
        myController.clear(); // clear the text from the input
      }
    }
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
          appBar: AppBar(title: Text("DEMO")),
          body: Container(
              padding: EdgeInsets.all(15),
              child: Column(children: [
                Row(
                    crossAxisAlignment: CrossAxisAlignment.center,
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: &lt;Widget&gt;[
                      Expanded(
                          child: TextField(
                        style: TextStyle(color: Colors.black),
                        controller: myController,
                        maxLines: 5,
                        keyboardType: TextInputType.multiline,
                      )),
                      SizedBox(width: 15),
                      InkWell(
                          onTap: () {
                            _addComment();
                          },
                          child: Icon(Icons.send))
                    ]),
                SizedBox(height: 10),
                Expanded(
                    child: ListView.builder(
                        itemCount: _items.length,
                        itemBuilder: (BuildContext ctxt, int index) {
                          return Padding(
                              padding: EdgeInsets.all(10),
                              child: Text("${(index + 1)}. " + _items[index]));
                        }))
              ])));
    }
  }
  </code></pre>