@jensen
В Flutter вы можете сделать текст жирным, используя тег <b>
или виджет Text
со свойством style
установленным на fontWeight: FontWeight.bold
.
Например:
1
|
Text('This is bold text', style: TextStyle(fontWeight: FontWeight.bold)) |
Вы также можете использовать тег <strong>
, чтобы сделать текст жирным:
1 2 3 4 5 6 7 8 9 |
RichText( text: TextSpan( children: <TextSpan>[ TextSpan(text: 'This is '), TextSpan(text: 'bold', style: DefaultTextStyle.of(context).style.copyWith(fontWeight: FontWeight.bold)), TextSpan(text: ' text'), ], ), ) |