FlintRichText constructor

FlintRichText({
  1. required List<FlintTextSpan> children,
  2. 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,
});