flutter paragraph 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))        ],    ),    textScaleFactor: 0.5,  )

Example 2: Flutter new paragraph text

child: Container(
         child :  Text('''
                          Text1
                          Text2
                          Text3''',maxLines: 20, style: TextStyle(fontSize: 16.0 ,fontWeight:FontWeight.bold,color: Colors.black) , )
      ),

Example 3: rich text flutter

RichText(    text: TextSpan(        style: TextStyle(color: Colors.black, fontSize: 18),        children: textSpans,    ),  )

Tags:

Dart Example