title: Use dynamic TextField in ListViewBuilder in Flutter
body: <p>I am trying to build a dynamic TextField list in flutter but did not understand at how I can handle it.</p>
  <p>My list looks like this:</p>
  <p>My code structure is:</p>
  <p><a href="https://i.stack.imgur.com/TwD8Z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TwD8Z.jpg" alt="enter image description here" /></a></p>
  <pre><code>ListView.builder(
              shrinkWrap: true,
              itemCount: itemList.length,
              itemBuilder: (context, index) {
                
                if(itemList.length == null) {
                  return _buildProgressIndicator();
                } else {
                  return singleItemList(index);
                }
            })
  
  
  
  
  Widget singleItemList(int index) {
  
  if((itemList.length -1) &lt; index)
  {
    return Container(child: null); 
  } else {
  
    dynamic singleItem = itemList[index];
    String counter = (index+1).toString();
  
    return 
       Container(
          
          decoration: BoxDecoration(
            color: Colors.white,
          ),
  
        child: Row(    
          
          children:[
  
            Expanded(
              flex: 1,
              child: Text(counter,style: orderBookItemListCounter(),)
            ),
  
             
  
            Expanded(
              flex: 3,
              child: TextField(
                  controller: _addProductToCart(counter),
                  decoration: InputDecoration(
                    labelText: &quot;Qty&quot;,
                  ),
              )
            ),
  
      ])
    );
  }
  }
  </code></pre>
  <ol>
  <li>My product list is not fixed may change the number of products,</li>
  <li>I would like to capture Qty as per product ID.</li>
  </ol>
  <p>Thanks
  :)</p>