showCometChatEmojiKeyboard function

Future<String?> showCometChatEmojiKeyboard({
  1. required BuildContext context,
  2. Color? backgroundColor,
  3. TextStyle? titleStyle,
  4. Color? dividerColor,
  5. TextStyle? categoryLabel,
  6. Color? selectedCategoryIconColor,
  7. Color? unselectedCategoryIconColor,
})

Public function to show emoji keyboard , returns the tapped emoji

Implementation

Future<String?> showCometChatEmojiKeyboard(
    {required BuildContext context,
    Color? backgroundColor,
    TextStyle? titleStyle,
    Color? dividerColor,
    TextStyle? categoryLabel,
    Color? selectedCategoryIconColor,
    Color? unselectedCategoryIconColor}) {
  return showModalBottomSheet(
    context: context,
    isScrollControlled: true,
    isDismissible: true,
    shape: const RoundedRectangleBorder(
        borderRadius: BorderRadius.vertical(top: Radius.circular(16))),
    builder: (context) {
      return CometChatEmojiKeyboard(
        backgroundColor: backgroundColor,
        titleStyle: titleStyle,
        dividerColor: dividerColor,
        categoryLabel: categoryLabel,
        selectedCategoryIconColor: selectedCategoryIconColor,
        unselectedCategoryIconColor: unselectedCategoryIconColor,
      );
    },
  );
}