Closed Fintasys closed 2 weeks ago
About the usage: wouldn't be possible to pass just the Locale object and the library behind the hood fetch the correct set?
@emavgl It's possible but it would remove the possibility to users to add other languages by their own
EmojiPicker( textEditingController: _controller, scrollController: _scrollController, config: Config( emojiSet: _getEmojiLocale(locale), ), )
I would still keep emojiSet
so if the user wants to do some change, they are free to implement _getEmojiLocale(locale)
or similar as they want to, in their app.
While in the library you already have the map Locale -> EmojiSet and you can easily achive something like
config: Config(
locale: userLocale;
),
Where userLocale
is an https://api.flutter.dev/flutter/dart-ui/Locale-class.html
@emavgl Ah I get it. That's of course also a possibility, thx! I will think about it and make further changes once I got time 🙏
Sure, thank you so much for your work!
closes: #203
Description
Usage