LMChatReactionBar
File location
reaction_bar.dart
LMChatReactionBar
displays a bar with emojis for selecting reactions. It supports customization through styles and interaction callbacks.
Properties
onReaction
(Function(String reaction)?
)
Callback triggered when a reaction is selected.style
(LMChatReactionBarStyle?
)
Defines the appearance of the reaction bar.
Note: These properties are only a subset. More can be found inside the widget class.
Styling
LMChatReactionBarStyle
File location
reaction_bar.dart
LMChatReactionBarStyle
defines the appearance of the reaction bar, including colors, size, and icons.
Property | Type | Description | Required | Default |
---|---|---|---|---|
background | Color? | Background color of the bar | No | Theme container |
width | double? | Width of the reaction bar | No | 80.w |
borderRadius | double? | Border radius of the bar | No | 6.0 |
Note: These properties are only a subset. More can be found inside the style class.
Example Usage
final reactionBar = LMChatReactionBar(
onReaction: (reaction) => print('Reaction selected: $reaction'),
style: LMChatReactionBarStyle(
background: Colors.white,
width: 100.0,
borderRadius: 10.0,
),
);