Skip to content
On this page

ChainOfThought

A collapsible sequence of progress steps and tool activity.

ChainOfThought in FluttyUIChainOfThought 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.

ChainOfThought

const ChainOfThought({
  super.key,
  this.steps = const [],
  this.isThinking = true,
  this.title,
  this.duration,
  this.initiallyExpanded = false,
  this.motion,
});
ParameterTypeRequiredDefault
keyKey?Nonull
stepsList<ThoughtStep>Noconst []
isThinkingboolNotrue
titleString?Nonull
durationDuration?Nonull
initiallyExpandedboolNofalse
motionComponentMotion?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/chain_of_thought/chain_of_thought.dart

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

DartFlutter

Get started with FluttyUI