Answers for "flutter rich text vs text.rich"

13

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))
        ],
    ),
    textScaleFactor: 0.5,
  )
Posted by: Guest on August-01-2020
3

rich text flutter

RichText(    text: TextSpan(        style: TextStyle(color: Colors.black, fontSize: 18),        children: textSpans,    ),  )
Posted by: Guest on August-01-2020

Browse Popular Code Answers by Language