chat_bubbles icon indicating copy to clipboard operation
chat_bubbles copied to clipboard

how to implement emoji as an action button

Open cool2apps opened this issue 3 years ago • 1 comments

Thanks for this wonderful plugin. I would like to add emoji add button to MessageBar like above. But I could not figure out how to implement this. Is it possible to add as an InkWell object? How should I proceed? Thanks.

      actions: [
        InkWell(
          child: Icon(
            Icons.emoji,
            color: Colors.black,
            size: 24,
          ),
          onTap: () => openEmojis(),
        ),
      ]

cool2apps avatar Jul 16 '22 15:07 cool2apps

@cool2apps Yes. You can use InkWell as an action, the above implementation is correct. As the next step, you need to implement a widget to show emojis inside the openEmojis() method. You can use this video to get an idea - https://youtu.be/EzIdiqfWgog

prahack avatar Jul 19 '22 11:07 prahack