You can separate pieces of text that you want to style differently by using a RichText widget.
Example:
return new Container(
child: new RichText(
textAlign: TextAlign.justify,
text: new TextSpan(
text: "Beginning of sentence",
children: <TextSpan>[
new TextSpan(
text: " - Text for changing background color",
style: new TextStyle(background: Paint object for changing background color),
),
new TextSpan(
text: " - Continuation of text",
),
],
),
),
);
On Thursday, June 21, 2018 at 1:17:30 AM UTC-5, shashikant durge wrote:
