text_search
1.0.2, released 2 years ago by flutterflow.io
An in-memory fuzzy text searching library for Dart.
What it does
Provides simple in-memory fuzzy text searching capabilities for Dart applications. It allows querying a list of searchable items using terms and handles fuzzy matching logic.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need in-memory fuzzy text search for small to medium datasets
- You want a pure Dart solution working across all platforms
Skip it when
- You need a full-text database search for massive datasets
- You require complex relational querying capabilities
Strengths
- Simple API with clear usage examples
- Works across all Flutter platforms including web and desktop
- Supports prefix matching options
Weaknesses
- Limited to in-memory searching
- Lacks advanced NLP or database indexing features
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:text_search/text_search.dart';
main() {
final searchableItems = [
TextSearchItem.fromTerms('Coffee Shop', ['coffee', 'latte', 'macchiato', 'tea']),
];
final placeTypeSearch = TextSearch(searchableItems);
print(placeTypeSearch.search('icecream'));
}Alternatives
Packages that do the same job and could replace text_search.
- flutter_timeago_pro
Formats nullable DateTime into human‑friendly relative or absolute timestamps.
66Compare - text_comparison_score_codespark
Calculate string similarity and fuzzy matching scores using Levenshtein, Damerau-Levenshtein, and Jaro-Winkler.
57Compare - fuzzy_bolt
High-performance fuzzy search algorithm with typo tolerance and Porter stemming.
51Compare - fuzzywuzzy
A Dart port of FuzzyWuzzy for fuzzy string matching and searching using Levenshtein distance.
50Compare
Works with
Packages commonly used together with text_search: ones it builds on, ones built on it, and its own family.