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.
MessageBubble
const MessageBubble({
super.key,
required this.child,
this.size,
this.role = MessageRole.assistant,
this.position = MessageBubblePosition.single,
this.filled,
this.maxWidth = 680,
this.sender,
this.timestamp,
this.avatar,
this.delivery,
this.actions,
this.footer,
this.backgroundColor,
this.padding,
this.onLongPress,
this.onLongPressStart,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
child | Widget | Yes | — |
size | ComponentSize? | No | null |
role | MessageRole | No | MessageRole.assistant |
position | MessageBubblePosition | No | MessageBubblePosition.single |
filled | bool? | No | null |
maxWidth | double | No | 680 |
sender | String? | No | null |
timestamp | String? | No | null |
avatar | Widget? | No | null |
delivery | MessageDelivery? | No | null |
actions | Widget? | No | null |
footer | Widget? | No | null |
backgroundColor | Color? | No | null |
padding | EdgeInsetsGeometry? | No | null |
onLongPress | VoidCallback? | No | null |
onLongPressStart | GestureLongPressStartCallback? | No | null |
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/message_bubble.dart
This reference is generated from the MessageBubble declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

