showCometChatEmojiKeyboard function
Future<String?>
showCometChatEmojiKeyboard({
- required BuildContext context,
- required CometChatColorPalette colorPalette,
Public function to show emoji keyboard, returns the tapped emoji Opens as a small bottom sheet that doesn't cover the message overlay
Implementation
Future<String?> showCometChatEmojiKeyboard({
required BuildContext context,
required CometChatColorPalette colorPalette,
}) {
return showModalBottomSheet(
backgroundColor: Colors.transparent,
context: context,
isScrollControlled: false, // Use default height, not full screen
isDismissible: true,
barrierColor: Colors.transparent, // No shadow/barrier effect
elevation: 0,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
),
builder: (context) {
return CometChatEmojiKeyboard(colorPalette: colorPalette);
},
);
}