Skip to content
On this page

Sources

Citation chips or source cards using application-supplied metadata.

MessageSources in FluttyUIMessageSources in FluttyUI dark theme

Import

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

Usage

const ui.MessageSources(
  sources: [],
  onOpen: null,
  layout: ui.MessageSourcesLayout.cards,
)

API Reference

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

MessageSources

const MessageSources({
  super.key,
  required this.sources,
  required this.onOpen,
  this.layout = MessageSourcesLayout.chips,
  this.cardWidth = 260,
  this.inset = 0,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sourcesList<MessageSource>Yes—
onOpenValueChanged<MessageSource>?Yes—
layoutMessageSourcesLayoutNoMessageSourcesLayout.chips
cardWidthdoubleNo260
insetdoubleNo0

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_sources.dart

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

DartFlutter

Get started with FluttyUI