JeffG05 / emoji_picker

A Flutter package that provides an Emoji Keyboard widget
https://pub.dev/packages/emoji_picker
BSD 2-Clause "Simplified" License
84 stars 91 forks source link

List of emoji reloads everytime the it's opened. made a suggestion #20

Closed jpainam closed 4 years ago

jpainam commented 4 years ago

Hi, The first time the user open the emoji, a time is spent and a loading widget is shown before displaying the list of emojis. This repeats everytime the user opens the emoji. You can use AutomaticKeepAliveClientMixin with

 @override
  bool get wantKeepAlive => true;

to keep the state of the emoji widget alive after the first reload.

Nice library by the way

deep1931 commented 4 years ago

Hi, I have added AutomaticKeepAliveClientMixin and called super.build in build method. But still same, loading emojis every time and take some time to load.

Please help

blisssan commented 4 years ago

Hi, I have added AutomaticKeepAliveClientMixin and called super.build in build method. But still same, loading emojis every time and take some time to load.

Please help

I have made a PR for improving load times & caching previously filtered emojis to Preferences. It has greatly improved for me. Its not yet approved by the maintainer so if needed clone my fork https://github.com/blisssan/emoji_picker and use it in your pubspec like this

emoji_picker:
    path: 'cloned/repo/directory/path'
deep1931 commented 4 years ago

Thanks for the update.

On Tue, 28 Apr, 2020, 3:10 PM Santhosh Kumar, notifications@github.com wrote:

Hi, I have added AutomaticKeepAliveClientMixin and called super.build in build method. But still same, loading emojis every time and take some time to load.

Please help

I have made a PR for improving load times & caching previously filtered emojis to Preferences. It has greatly improved for me. Its not yet approved by the maintainer so if needed clone my fork https://github.com/blisssan/emoji_picker and use it in your pubspec like this

emoji_picker: path: ''

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JeffG05/emoji_picker/issues/20#issuecomment-620495914, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLL53ZUESVPBMLK2D5WDATRO2P7BANCNFSM4KSDHGFA .

jpainam commented 4 years ago

Going to close this repo. as @blisssan suggested. you can use his fork.