Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Option to hide the recent page would be nice #25

Open
Ajaystefin opened this issue Apr 23, 2020 · 2 comments
Open

Feature request: Option to hide the recent page would be nice #25

Ajaystefin opened this issue Apr 23, 2020 · 2 comments

Comments

@Ajaystefin
Copy link

The recent section does not work well. It would be nice to have a disable option

@blisssan
Copy link
Contributor

I will try to make a PR for this soon, but it seems like the maintainer is not working on it any more. I made couple of PR 2 weeks ago, but no comments on it yet.

@michaelopes
Copy link

michaelopes commented Dec 4, 2020

Hello, I finded a temporary solution for this issue.

like above:
import 'package:emoji_picker/emoji_picker.dart' as emoji;

Create a GlobalKey:
final key = new GlobalKey<State<emoji.EmojiPicker>>();

Final code like above:

Widget buildSticker() {
    picker = emoji.EmojiPicker(
      key: key,
      bgColor: ColorsConst.bg,
      indicatorColor: ColorsConst.primary,
      selectedCategory: emoji.Category.RECENT,
      rows: 3,
      columns: 7,
      buttonMode: emoji.ButtonMode.MATERIAL,
      recommendKeywords: [],
      numRecommended: 10,
      onEmojiSelected: (emoji, category) {
        (key.currentState as dynamic).addRecentEmoji(emoji);
        //createState().addRecentEmoji(emoji);
      },
    );
    return picker;
  } 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants