Search packages, repositories and app categories

Package detailsv1.0.2

text_search

Simple in-memory fuzzy text searching library.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
69.1K
Likes
31
Pub points
150

Install package

flutter pub add text_search

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight, in-memory fuzzy text search library designed for efficient and flexible text matching within Flutter applications. It enables users to perform approximate string matching, making it ideal for autocomplete, filtering, and search functionalities where exact matches are not required. The library is optimized for performance and works seamlessly across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. Built with simplicity in mind, it integrates easily into existing projects via a straightforward API.

Use cases

  • Real-time search input handling
  • Autocomplete suggestions
  • Filtering lists with typo tolerance
  • Data lookup with partial matches
  • User-friendly search experiences

Key features

  • Fuzzy matching algorithm
  • In-memory operation for speed
  • Cross-platform compatibility
  • Simple and intuitive API
  • Supports partial and misspelled word matching

Suitable for

  • Developers building search interfaces
  • Apps requiring typo-tolerant searches
  • Projects needing fast local text filtering
  • Flutter apps targeting multiple platforms
  • Lightweight search solutions without backend dependencies

Considerations

  • Not suitable for large datasets due to in-memory storage
  • Limited to client-side searching
  • Performance may degrade with very large data sets
  • No built-in support for remote or database queries
  • Best used with moderate-sized collections of text

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.