flutter - 如何在flutter中使用flutter_typeahead
问题描述
我在我的应用程序中使用了flutter_typeahead pacakge,它工作正常,问题是键盘掩盖了建议列表,任何想法都会很棒。
SingleChildScrollView(
child: new Column(
children: [
TypeAheadFormField(
textFieldConfiguration: TextFieldConfiguration(
controller: _typeAheadController,
decoration: InputDecoration(
labelText: 'کاربر',
),
),
suggestionsCallback: (pattern) async {
_preferences = await SharedPreferences.getInstance();
GetUserInfoDto getUserInfoDto = new GetUserInfoDto(
apiToken: _preferences.getString('apiToken'),
searchText: pattern,
);
return await _mourdakRepository
.getUserInfo(getUserInfoDto);
},
),
],
),
),
解决方案
推荐阅读
- css - 更正“文件观察器”“参数”字段中的 PhpStorm node-sass 语法
- python - DataFrame 可选“条件”以过滤任何内容
- azure-devops - 获取由用户触发的部署
- c# - Activator.CreateInstance 拾取旧引用的 dll。无法正常工作
- node.js - 使用 ngx-pagination 的服务器端分页
- javascript - 为什么 ResizeObserver 构造函数回调接受条目数组而不是单个条目?
- javascript - 如何将正则表达式用于通用编号?
- python - 将剪贴板图像读入 OCR 函数
- visual-studio-code - VSCode 扩展是否有非漫游路径来存储平台相关的二进制数据?
- python - 如何根据值添加一个重复出现