Answers for "richtext flutter add widget"

1

richtext flutter

RichText(
  text: TextSpan(
    text: 'Hello ',
    style: DefaultTextStyle.of(context).style,
    children: const <TextSpan>[
      TextSpan(text: 'bold', style: TextStyle(fontWeight: FontWeight.bold)),
      TextSpan(text: ' world!'),
    ],
  ),
)
Posted by: Guest on November-27-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language