How do you change the value inside of a textfield flutter?

后端 未结 10 1667
忘掉有多难
忘掉有多难 2020-12-06 08:49

I have a TextEditingController where if a user clicks a button it fills in with information. I can\'t seem to figure out how to change the text inside of a

10条回答
  •  感情败类
    2020-12-06 09:26

    _mytexteditingcontroller.value = new TextEditingController.fromValue(new TextEditingValue(text: "My String")).value;
    

    This seems to work if anyone has a better way please feel free to let me know.

提交回复
热议问题