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.
ExpandableText
const ExpandableText(
this.text, {
super.key,
this.maxLines = 3,
this.isExpanded,
this.initiallyExpanded = false,
this.onExpandedChanged,
this.style,
this.textAlign = TextAlign.start,
this.expandLabel = 'Read more',
this.collapseLabel = 'Show less',
this.actionColor,
this.actionGap = 6,
this.motion,
});| Parameter | Type | Required | Default |
|---|---|---|---|
text | String | Yes | — |
key | Key? | No | null |
maxLines | int | No | 3 |
isExpanded | bool? | No | null |
initiallyExpanded | bool | No | false |
onExpandedChanged | ValueChanged<bool>? | No | null |
style | TextStyle? | No | null |
textAlign | TextAlign | No | TextAlign.start |
expandLabel | String | No | 'Read more' |
collapseLabel | String | No | 'Show less' |
actionColor | Color? | No | null |
actionGap | double | No | 6 |
motion | ComponentMotion? | 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/typography/expandable_text/expandable_text.dart
This reference is generated from the ExpandableText declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

