Skip to content
pubscout

diacritic

0.1.6, released 2 years ago by agilord.com

Removes common accents and diacritical signs from strings.

WASM-ready
$ flutter pub add diacritic
Source repository

What it does

Provides a simple function to strip common accents and diacritical marks from a given string, replacing them with equivalent non-accented characters. Useful for normalization, search indexing, or handling text input without special characters.

AI-written summary of version 0.1.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to normalize user input by removing diacritics.
  • You are building a search or filtering feature that should ignore accents.

Skip it when

  • You need full internationalization or locale-aware collation rules beyond simple character replacement.

Strengths

  • Extremely simple and lightweight with no external dependencies.
  • Works across all Dart platforms including web, mobile, and desktop.

Weaknesses

  • Provides a very narrow, single-purpose functionality.
  • Does not handle advanced locale-specific string normalization rules.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:diacritic/diacritic.dart';

main() {
  print(removeDiacritics('árvíztűrő tükörfúrógép'));
}

Alternatives

Packages that do the same job and could replace diacritic.

Works with

Packages commonly used together with diacritic: ones it builds on, ones built on it, and its own family.