Skip to content
On this page

MessageContent

A composition surface for structured message content.

MessageContent in FluttyUIMessageContent 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.

MessageContent

const MessageContent({
  super.key,
  required this.children,
  this.isStreaming = false,
  this.onStop,
  this.error,
  this.onRetry,
  this.spacing = 12,
});
ParameterTypeRequiredDefault
keyKey?Nonull
childrenList<Widget>Yes—
isStreamingboolNofalse
onStopVoidCallback?Nonull
errorString?Nonull
onRetryVoidCallback?Nonull
spacingdoubleNo12

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_content/message_content.dart

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

DartFlutter

Get started with FluttyUI