TextSpan
An inline run of styled text, optionally with children that inherit
and override this span’s style — a cascade, like Flutter’s TextSpan.
Build a tree of these to mix styles on one line.
See also: RichText to render a span tree.
Import: package:fleury/fleury.dart, or package:fleury/fleury_core.dart in browser code.
TextSpan( text: 'deploy ', children: [TextSpan(text: 'ok', style: CellStyle(bold: true))],)Constructors
Section titled “Constructors”TextSpan()
Section titled “TextSpan()”| Parameter | Type | Default | Description |
|---|---|---|---|
text: | String? | — | Text contributed by this span before any children. |
style: | CellStyle? | — | Style merged over the parent span or ambient text style. |
children: | List<TextSpan>? | — | Nested spans that inherit and may override this span’s style. |
Source
Section titled “Source”TextSpan is defined in packages/fleury/lib/src/widgets/rich_text.dart.
Category: Text & content · All widgets