Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

flutter自定义搜索框如何提交搜索啊?

onSubmitted: (v) {
setState(() {
this._keywords = v;
print("搜索框值:${this._keywords}");
});
_requestData();
},

在搜索框中TextField用这个onSubmitted怎么无法提交搜索呢?KEYWORDS可以取到。但提交后无反应,页面没刷新。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

this._requestData(); ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...