FLUTTER ECOSYSTEM

FlutterFlow/text_search

一個用於 Dart 的記憶體中模糊文字搜尋程式庫。

文字搜尋 專案封面
Stars
18
Forks
4
最近推送(UTC)
2024年5月22日
專案狀態
未封存
FlutterFlow GitHub avatar
GITHUB Organization

FlutterFlow ↗

語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • tuple^2.0.0
  • pedantic開發依賴
  • test開發依賴

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

An in-memory fuzzy text search library for Dart.

license.

Usage

A simple usage example:

import 'package:text_search/text_search.dart';

main() {
  final searchableItems = [
    TextSearchItem.fromTerms('Coffee Shop', ['coffee', 'latte', 'macchiato', 'tea']),
    TextSearchItem.fromTerms('Dessert', ['ice cream', 'cake', 'pastry']),
    TextSearchItem.fromTerms('Milk Tea Shop', ['boba', 'milk tea', 'bubble tea']),
  ];

  final placeTypeSearch = TextSearch(searchableItems);
  print(placeTypeSearch.search('icecream'));
}

Features and bugs

Please file feature requests and bugs at the issue tracker.