title: Textfield not editing text in flutter
body: <p>I have set value in dynamic <code>textfield</code> through the controller but it does not allow me to edit value only cursor is moving around the entered text.
   I have tried to set value in this way</p>
  
  <pre><code>shippingNameController.value = shippingNameController.value.copyWith(text:name);
  </code></pre>
  
  <p>But before the above solution I had tried this, I'm having dynamic textfield named as Billing name and I want to update the value of billing name in the shipping name.</p>
  
  <pre><code>shippingNameController.text=name;
  </code></pre>
  
  <p>this was not working when I have used this it was showing cursor at the start of textfield and not updating the value.</p>
  
  <pre><code>new TextField(
            style: TextStyle(fontFamily: 'semibold',color: MyColors.colorPrimary),
            keyboardType:field.type=='STR'||field.type=='EMAIL'? TextInputType.text:TextInputType.number,
            textInputAction: TextInputAction.done,
            decoration: InputDecoration(contentPadding:EdgeInsets.all(8.0),
              hintStyle: TextStyle(fontFamily: 'semibold',color: MyColors.colorPrimary),
              border: InputBorder.none,),
            controller: shippingNameController,
            onChanged: (String val) {
              enteredValue(field,val);
              setState(() {
                shippingNameController.text = val;
                sShppingfieldList[p].fieldvalue=val;
              });
            },),
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/OlejB.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OlejB.gif" alt="enter image description here"></a></p>