bold text flutter code example
Example 1: flutter text style bold
Text(
'My Card Alert',
style: TextStyle(
fontWeight: FontWeight.bold
),
)
Example 2: flutter font bold
Text(
'Some text',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold),
)
Example 3: rich text flutter
RichText( text: TextSpan( style: TextStyle(color: Colors.black, fontSize: 36), children: [ TextSpan(text: 'Woolha ', style: TextStyle(color: Colors.blue)), TextSpan(text: 'dot '), TextSpan(text: 'com', style: TextStyle(decoration: TextDecoration.underline)) ], ), textScaleFactor: 0.5, )
Example 4: how to style text in flutter
Text(
'text'
style: TextStyle(),
),
Example 5: rich text flutter
List textSpans = [ 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'), ];