BubbleReaction constructor

const BubbleReaction({
  1. Key? key,
  2. required List<Reaction> reactions,
  3. dynamic onReactionTap(
    1. Reaction
    )?,
  4. VoidCallback? onAddReactionTap,
  5. bool showAddButton = true,
  6. Color backgroundColor = const Color(0xFFF0F0F0),
  7. Color userReactionColor = const Color(0xFFE3F2FD),
  8. Color textColor = Colors.black87,
  9. Color? borderColor,
  10. double emojiSize = 16,
  11. EdgeInsets chipPadding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
  12. double spacing = 4,
  13. double borderRadius = 12,
  14. bool alignRight = false,
})

Creates a BubbleReaction widget

Implementation

const BubbleReaction({
  Key? key,
  required this.reactions,
  this.onReactionTap,
  this.onAddReactionTap,
  this.showAddButton = true,
  this.backgroundColor = const Color(0xFFF0F0F0),
  this.userReactionColor = const Color(0xFFE3F2FD),
  this.textColor = Colors.black87,
  this.borderColor,
  this.emojiSize = 16,
  this.chipPadding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
  this.spacing = 4,
  this.borderRadius = 12,
  this.alignRight = false,
}) : super(key: key);