flutter 多重搜索
非常感谢:@Cuberto 提供了出色的 @设计
感谢:@Mert Şimşek 对 @Android 版本提供的灵感

基本用法
MultiSearchView(
onSelectItem: (value) {
/// when you swith from an item to another
},
onSearchComplete: (value) {
/// when you hit the keyboard search button
},
onDeleteAlternative: (value) {
/// when you delete and item and it switchs to another item if exist
},
onItemDeleted: (value) {
/// when you delete an item
},
onSearchCleared: () {
/// when all search items are cleared
},
)
选项
选择指示器形状(默认为线条形状)
searchIndicatorShape: SearchIndicatorShape.dot
/// or
searchIndicatorShape: SearchIndicatorShape.line
指示器颜色
indicatorColor: Colors.purple
更改宽度(默认是屏幕尺寸宽度)
width: 150
更改图标颜色
iconColor: Colors.blue
更改删除项图标颜色
removeItemIconColor: Colors.black
更改删除项图标颜色
removeItemIconColor: Colors.black
设置占位符文本
inputHint: 'type your text'
... 请查看类代码以获取更多选项
? 贡献指南
欢迎贡献、问题和功能请求。
如果您想贡献,请随时查看 [问题页面]。
作者
? Mejdi Hafiane
- Twitter: @MejdiHafiane
表达您的支持
如果该项目对您有帮助,请给此仓库点 ⭐️!
? 许可证
版权所有 2021 Mejdi hafiane