FlintRichText constructor
FlintRichText({
- required List<
FlintTextSpan> children, - TextAlign align = TextAlign.left,
Creates a rich text widget with one or more FlintTextSpans.
Example:
FlintRichText(
align: TextAlign.center,
children: [
FlintTextSpan("Welcome to ", style: TextStyle(fontSize: 16)),
FlintTextSpan("Flint Dart", style: TextStyle(fontWeight: FontWeight.bold)),
],
)
Implementation
FlintRichText({
required this.children,
this.align = TextAlign.left,
});