v0.5.2
fuzzy
Dart 中的模糊搜索。最初是代码转换,Fuse.js 的子集。
112喜欢 6.2万近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
Dart 中的模糊搜索
以下为英文项目原文快照,最新内容请访问 GitHub。
Fuzzy search in Dart.
This project is basically a code conversion, subset of Fuse.js.
add the following to your pubspec.yaml file:
dependencies:
fuzzy: <1.0.0
then run:
pub get
or with flutter:
flutter packages get
import 'package:fuzzy/fuzzy.dart';
void main() {
final fuse = Fuzzy(['apple', 'banana', 'orange']);
final result = fuse.search('ran');
result.map((r) => r.output.first.value).forEach(print);
}
Don't forget to take a look at FuzzyOptions!
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗