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,
    backgroundColor: Colors.transparent,
    shape: const RoundedRectangleBorder(
        borderRadius: BorderRadius.vertical(top: Radius.circular(24))),
    builder: (context) {
      return const EmojiPickerWidget();
    },
  );
}