Skip to content
On this page

MessageBubbleGroup

A coordinated group of related message bubbles.

MessageBubbleGroup in FluttyUIMessageBubbleGroup 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.

MessageBubbleGroup

const MessageBubbleGroup({
  super.key,
  required this.children,
  this.role = MessageRole.assistant,
  this.sender,
  this.avatar,
  this.timestamp,
  this.delivery,
  this.actions,
  this.filled,
  this.maxWidth = 680,
  this.spacing = 4,
  this.onLongPress,
  this.onLongPressStart,
  this.onMessageLongPress,
  this.onMessageLongPressStart,
});
ParameterTypeRequiredDefault
keyKey?Nonull
childrenList<Widget>Yes—
roleMessageRoleNoMessageRole.assistant
senderString?Nonull
avatarWidget?Nonull
timestampString?Nonull
deliveryMessageDelivery?Nonull
actionsWidget?Nonull
filledbool?Nonull
maxWidthdoubleNo680
spacingdoubleNo4
onLongPressVoidCallback?Nonull
onLongPressStartGestureLongPressStartCallback?Nonull
onMessageLongPressValueChanged<int>?Nonull
onMessageLongPressStartvoid Function(int index, LongPressStartDetails details)?Nonull

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_bubble_group/message_bubble_group.dart

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

DartFlutter

Get started with FluttyUI