问题描述
我正在尝试在我的应用中添加搜索逻辑。我有一个包含“标题”和“网址”字段的列表。 我处理了这个,但我想同时搜索标题和网址字段。
ValueListenableBuilder<Box<Record>>(
valueListenable: Boxes.getRecord().listenable(),builder: (context,Box,_) {
final records = Box.values.toList().cast<Record>();
List<Record> filteredRecords = records
.where((record) =>
record.title.containsIgnoreCase(_searchTextController.text))
.toList();
return buildContent(context,filteredRecords);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)