OudsLabelText.rich constructor
- Key? key,
- required OudsAnnotatedText text,
- Color? color,
- OudsLabelTextSize size = OudsLabelTextSize.medium,
- OudsTextWeight weight = OudsTextWeight.defaultWeight,
- void onLinkTap(
- String url
- int? maxLines,
- TextAlign? textAlign,
- TextOverflow? overflow,
- bool? softWrap,
Creates an OudsLabelText whose content is composed of multiple spans, some of which can be
colored independently of the others. Build text with buildOudsAnnotatedText to color part
of the text, e.g. to highlight a word or phrase.
Implementation
const OudsLabelText.rich({
super.key,
required OudsAnnotatedText text,
this.color,
this.size = OudsLabelTextSize.medium,
this.weight = OudsTextWeight.defaultWeight,
this.onLinkTap,
this.maxLines,
this.textAlign,
this.overflow,
this.softWrap,
}) : text = '',
_annotatedText = text;