Skip to content
On this page

MessageReactions

Emoji reactions and counts attached to a message.

MessageReactions in FluttyUIMessageReactions in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

MessageReactions

const MessageReactions({
  super.key,
  required this.reactions,
  this.size,
  this.onChanged,
  this.onAddReaction,
  this.addReactionButton,
  this.enabled = true,
  this.spacing,
  this.runSpacing,
  this.alignment = WrapAlignment.start,
  this.height,
  this.emojiSize,
  this.fontSize,
  this.maxCount = 99,
  this.backgroundColor,
  this.selectedBackgroundColor,
  this.selectedForegroundColor,
  this.addReactionLabel = 'Add reaction',
});
ParameterTypeRequiredDefault
keyKey?Nonull
reactionsList<MessageReaction>Yes—
sizeComponentSize?Nonull
onChangedMessageReactionChanged?Nonull
onAddReactionVoidCallback?Nonull
addReactionButtonWidget?Nonull
enabledboolNotrue
spacingdouble?Nonull
runSpacingdouble?Nonull
alignmentWrapAlignmentNoWrapAlignment.start
heightdouble?Nonull
emojiSizedouble?Nonull
fontSizedouble?Nonull
maxCountintNo99
backgroundColorColor?Nonull
selectedBackgroundColorColor?Nonull
selectedForegroundColorColor?Nonull
addReactionLabelStringNo'Add reaction'

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/messaging/message_reactions/message_reactions.dart

This reference is generated from the MessageReactions declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI