TextEditingController textEditingController = TextEditingController();
TextField(
controller: textEditingController,
decoration: InputDecoration(
hintText: "请输入内容",
border: OutlineInputBorder(),
prefixIcon: Icon(Icons.people)),
)
获取输入值
textEditingController.text
网友评论