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
4.2k views
in Technique[技术] by (71.8m points)

flutter怎样提交搜索?

新手问一下:
FLUTTER,怎样提交搜索?
比如:用了showSearch后,跳到新搜索页面,在新搜索页面中,怎样将buildSuggestions的建议结果,点击后再次搜索呢?

像这样:

这是:输入框 关键词搜索
下面是建议关键词列表:
aaaaaaaa
bbbbbbbb
cccdddde
...

历史记录列表:
1111111
22222
3345566

怎样点击这些记录进行搜索呢。网上教程只教到这一步,不知怎么用。我尝试在这些记录加上跳转,但出现黑屏大红字。。。


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

1 Answer

0 votes
by (71.8m points)

记录列表是input自带属性的?还是自定义功能开发的?
个人意见:
不需要在列表每个加跳转;
点击记录 input会拿到值。那你change这个值,根据内容判断,该去哪去哪;


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

...