how to make rich text in flutter code example

Example 1: rich text flutter

RichText(    text: TextSpan(        style: TextStyle(color: Colors.black, fontSize: 36),        children: <TextSpan>[          TextSpan(text: 'Woolha ', style: TextStyle(color: Colors.blue)),          TextSpan(text: 'dot '),          TextSpan(text: 'com', style: TextStyle(decoration: TextDecoration.underline))        ],    ),  )

Example 2: rich text flutter

List<TextSpan> textSpans = <TextSpan>[    TextSpan(text: 'Woolha ', style: TextStyle(color: Colors.blue)),    TextSpan(text: 'dot '),    TextSpan(text: 'com '),    TextSpan(text: 'word '),    TextSpan(text: 'word '),    TextSpan(text: 'word'),    TextSpan(text: 'word'),    TextSpan(text: 'word'),    TextSpan(text: 'word'),    TextSpan(text: 'word'),  ];

Tags:

Misc Example