'How do you create a deprecated Text in flutter?
Solution 1:[1]
Try below code: refer decorationThickness
Text(
'Rs.234554',
style: TextStyle(
decoration: TextDecoration.lineThrough,
),
),
Solution 2:[2]
The property name that you're searching is the lineThrough.
You can update the style property of your Text widget and add the following:
TextStyle(decoration: TextDecoration.lineThrough)
Solution 3:[3]
Like this:
Text(
'Your text',
style: TextStyle(
decoration: TextDecoration.lineThrough,
),
)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ravindra S. Patil |
| Solution 2 | BLKKKBVSIK |
| Solution 3 | Rukka |


