CometChatReactions
widget provides a visual representation of emoji reactions associated with a specific message. It enables users to quickly identify which emojis were used to react to the message and by whom.
CometChatReactions
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatReactions
CometChatReactions
as a Widget in the build MethodonReactionTap
is triggered when you click on each Reaction in the footer view of message bubble. You can override this action using the following code snippet.
onReactionLongPress
is triggered when you long press on Reaction in the footer view of message bubble. You can override this action using the following code snippet.
Widget
. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders
of Chat SDK.
The CometChatReactions
widget does not have any exposed filters.
Widget
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
The CometChatReactions
widget does not produce any events.
reactionsStyle
object to the CometChatReactions
widget.
ReactionsStyle
Property | Description | Code |
---|---|---|
reactionTextStyle | The text style for the reaction text. | TextStyle? reactionTextStyle |
reactionCountTextStyle | The text style for the reaction count. | TextStyle? reactionCountTextStyle |
primaryBackgroundColor | The primary background color. | Color? primaryBackgroundColor |
primaryBorder | The primary border style. | BoxBorder? primaryBorder |
margin | The margin for the reactions. | EdgeInsetsGeometry? margin |
padding | The padding for the reactions. | EdgeInsetsGeometry? padding |
width | The width of the reactions container. | double? width |
height | The height of the reactions container. | double? height |
background | The background color of the reactions container. | Color? background |
gradient | The gradient for the background of the reactions container. | Gradient? gradient |
border | The border of the reactions container. | BoxBorder? border |
borderRadius | The border radius of the reactions container. | double? borderRadius |
Property | Description | Code |
---|---|---|
reactionList | The list of reactions to display. | List<Reaction> reactionList |
theme | The theme for styling the reactions. | ThemeData? theme |
alignment | The alignment of the reactions within the container. | Alignment? alignment |