diacritic 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 95

Dart diacritic library #

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

Usage #

A simple usage example:

import 'package:diacritic/diacritic.dart';

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

0.1.1 #

  • Remove Unicode Combining Diacritical Marks.

0.1.0 #

  • Dart 2

0.0.2 #

  • 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.1.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub 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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/diacritic.dart. (-0.50 points)

Analysis of lib/diacritic.dart reported 1 hint:

line 12 col 5: Unnecessary new keyword.

Maintenance suggestions

Package is getting outdated. (-9.32 points)

The package was last published 57 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
pedantic ^1.0.0
test ^1.3.0