LMChatReactionKeyboard
File location
reaction_emoji_keyboard.dart
LMChatReactionKeyboard
provides a keyboard for selecting emojis to react to messages. It supports customization of colors, layout, and emoji selection behavior.
Properties
textController
(TextEditingController?
)
Controller for handling text input in the emoji keyboard.onEmojiSelected
(Function(String emoji)?
)
Callback function triggered when an emoji is selected.style
(LMChatReactionKeyboardStyle?
)
Customizes the appearance and layout of the emoji keyboard.
Note: These properties are only a subset. More can be found inside the widget class.
Styling
LMChatReactionKeyboardStyle
File location
reaction_emoji_keyboard.dart
LMChatReactionKeyboardStyle
defines the appearance and layout of the emoji keyboard, including button colors, grid configuration, and padding.
Property | Type | Description | Required | Default |
---|---|---|---|---|
buttonIconColor | Color? | Color of the keyboard button icons | No | Colors.grey |
gridPadding | EdgeInsets? | Padding around the emoji grid | No | EdgeInsets.zero |
recentsLimit | int? | Limit for recent emojis | No | 28 |
Note: These properties are only a subset. More can be found inside the style class.
Example Usage
final emojiKeyboard = LMChatReactionKeyboard(
textController: TextEditingController(),
onEmojiSelected: (emoji) => print('Selected emoji: $emoji'),
style: LMChatReactionKeyboardStyle.basic(),
);