To use sqlite3-arabic-tokenizer in Flutter.
This is a custom FTS5 tokenizer for SQLite. If you don't know what is a custom tokenizer, you can check this.
This tokenizer will remove diacritics from Arabic text. Suppose, you have a Quran app where you want to search without Arabic diacritics. Like you want to match 'الحمد' with 'ٱلْحَمْدُ'. You can use this tokenizer to create a virtual fts5 table that will do this.
First, add sqlite3_arabic_tokenizer_flutter
as a dependency in your pubspec.yaml file.
dependencies:
sqlite3_arabic_tokenizer_flutter: ^0.0.1
Don't forget to flutter pub get
.
Please check the example app for detailed implementation. For more info, read this article