Answers for "rich text flutter"

1

flutter rich text

Text.rich(
  TextSpan(
    text: 'Hello', // default text style
    children: [
      TextSpan(text: ' beautiful ', style: TextStyle(fontStyle: FontStyle.italic)),
      TextSpan(text: 'world', style: TextStyle(fontWeight: FontWeight.bold)),
    ],
  ),
)
Posted by: Guest on August-20-2021
11

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
2

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