Search packages, repositories and app categories

Package detailsv0.5.2

fuzzy

Fuzzy search in Dart. Initially a code conversion, subset of Fuse.js.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
62.3K
Likes
112
Pub points
150

Install package

flutter pub add fuzzy

Package Overview

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

Fuzzy is a Dart package providing fuzzy search functionality, inspired by Fuse.js. It enables efficient and flexible text matching by finding partial or approximate matches within strings, making it ideal for autocomplete and search features. Originally a code conversion, it supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The package is lightweight and designed for seamless integration into Flutter applications requiring intelligent search capabilities.

Use cases

  • Autocomplete suggestions
  • Search filtering
  • Text matching in large datasets
  • Real-time search input
  • User-friendly search interfaces
  • Data lookup with typos

Key features

  • Fast fuzzy string matching
  • Supports partial and typo-tolerant searches
  • Cross-platform compatibility
  • Lightweight and easy to integrate
  • Configurable match scoring
  • Minimal setup required

Suitable for

  • Developers building search bars
  • Apps needing typo-resistant search
  • Projects with large text datasets
  • Flutter apps targeting multiple platforms
  • UI components requiring real-time feedback
  • Applications with user input variability

Considerations

  • Performance may degrade with very large datasets
  • Custom scoring logic requires additional configuration
  • Limited to string-based searches
  • Not optimized for non-English text without tuning
  • May need caching for repeated queries
  • Best suited for moderate-sized data sets

Original README

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

Fuzzy

Pub Package CI

Fuzzy search in Dart.

This project is basically a code conversion, subset of Fuse.js.

Installation

add the following to your pubspec.yaml file:

dependencies:
  fuzzy: <1.0.0

then run:

pub get

or with flutter:

flutter packages get

Usage

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!

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

Rankings