Skip to main content

Emoji Keyboard

CometChatEmojiKeyboard is CometChat's very own customizable emoji keyboard. it can be rendered by calling function showCometChatEmojiKeyboard.

Properties

PropertiesTypeDescription
contextBuildContextrequired for showCometChatEmojiKeyboard to determine the location in the widget tree where the keyboard needs to be shown.
titleStyleTextStyleused to customise the appearance of the title text
backgroundColorColorused to set the background color
dividerColorColorused to set the divider color
selectedCategoryIconColorColorused to set the color of selected icon
unselectedCategoryIconColorColorused to set the color of unselected icon
categoryLabelTextStyleused to customise the appearance of the category label text

Usage

Developers can load the emoji keyboard with just one line of code.

showCometChatEmojiKeyboard(context: context);

Or customize its appearance as per their wish

showCometChatEmojiKeyboard(
context: context,
backgroundColor: Colors.amber.shade200,
dividerColor: Colors.red.shade400,
selectedCategoryIconColor: Colors.pink.shade300,
unselectedCategoryIconColor: Colors.orange.shade400
);