Fintasys / emoji_picker_flutter

A Flutter package that provides an Emoji picker widget with 1500+ emojis in 8 categories.
MIT License
170 stars 127 forks source link

[Draft] Create Locale files for emoji descriptions #222

Closed Fintasys closed 2 weeks ago

Fintasys commented 2 weeks ago

Add Emoji set language files for

Usage


EmojiPicker(
         textEditingController: _controller,
         scrollController: _scrollController,
         config: Config(
             emojiSet: _getEmojiLocale(locale),
        ),
)

List<CategoryEmoji> _getEmojiLocale(String locale) {
    switch (locale) {
      case "ja":
        return emojiSetJapanese;
      case "de":
        return emojiSetGerman;
      default:
        return emojiSetEnglish;
    }
}