title: Define Number of lists according with Number into Widget flutter
body: <p>What I Have are number of orders received that has be shown into a tab into a widget in flutter according with this code:</p>
  <pre><code>class ShipmentTab extends StatefulWidget {
    @override
    _ShipmentTabState createState() =&gt; _ShipmentTabState();
  }
  
  class _ShipmentTabState extends State&lt;ShipmentTab&gt; {
    **final shipmentNumber = &quot;16&quot;;**
  
    @override
    Widget build(BuildContext context) {
      return Row(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: &lt;Widget&gt;[
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: Card(
              color: Color(0xfffeaf0d),
              child: Container(
                width: 40,
                height: 40,
                child: Icon(
                  Icons.local_shipping,
                  color: Colors.white,
                ),
              ),
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(13),
            child: Text(
              shipmentNumber,
              style: TextStyle(
                  color: Colors.white, fontSize: 35, fontWeight: FontWeight.bold),
            ),
          ),
        ],
      );
    }
  }
  
  </code></pre>
  <p>as you can see variable is &quot; shipmentNumber &quot; that show &quot;16&quot;
  below I have listview.builder and I need to add itemCount and this count has to be refered to the tab above &quot;16&quot;
  this is the code of the list:</p>
  <pre><code>Container(
            height: 400,
            child: ListView.builder(
              shrinkWrap: true,
              itemBuilder: (ctx, int) {
                return Card(
                  color: Color(0xFF1f2032),
                  elevation: 15,
                  child: Container(
                    width: 60,
                    height: 60,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceAround,
                      children: &lt;Widget&gt;[
                        Card(
                          color: Color(0xfffeaf0d),
                          child: Container(
                              height: 40,
                              width: 40,
                              child: Icon(
                                Icons.local_shipping,
                                color: Colors.white,
                                size: 25,
                              )),
                        ),
                        Text(
                          'Ref № $int',
                          style: TextStyle(
                              color: Colors.white, fontWeight: FontWeight.bold),
                        ),
                        Text(
                          'Mario Rossi',
                          style: TextStyle(
                            fontWeight: FontWeight.bold,
                            color: Color(0xfffeaf0d),
                          ),
                        ),
                        Text(
                          'Consegnato',
                          style: TextStyle(color: Colors.lightGreenAccent),
                        ),
                        Icon(
                          Icons.share,
                          color: Colors.white,
                        )
                      ],
                    ),
                  ),
                );
              },
            ),
          ),
        ],
      );
    }
  }
  </code></pre>