Want to make a line through text in Flutter? You can also style separate spans of a paragraph by using the RichText widget. Based on this example code, to show a discounted price:
text: new TextSpan(
text: 'This item costs ',
style: new TextStyle(
text: ' $3.99',
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.