diacritic 0.0.2

  • README.md
  • Example
  • Installing
  • Versions
  • 86

Dart diacritic library

Removes common accents and diacritical signs from a string by replacing them with an equivalent character.


A simple usage example:

import 'package:diacritic/diacritic.dart';

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


  • Updated for Dart 2


import 'package:diacritic/diacritic.dart';

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

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  diacritic: "^0.0.2"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:diacritic/diacritic.dart';
Version Uploaded Documentation Archive
0.0.2 Apr 15, 2018 Go to the documentation of diacritic 0.0.2 Download diacritic 0.0.2 archive
0.0.1 Nov 12, 2016 Go to the documentation of diacritic 0.0.1 Download diacritic 0.0.1 archive


We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
73 / 100
Code health derived from static analysis. [more]
99 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:diacritic/diacritic.dart.


  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Run dartfmt to format lib/src/replacement_map.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
Dev dependencies
test >=0.12.0 <0.13.0