Hello Friends, For couple of days I have been seeing that whenever I’m using Raised Button widget in flutter then automatically a Strike through or Line through horizontal line will be display on RaisedButton. The error line is displaying in both Android Studio and Visual Studio Code Editor. After seeing it a lot, I finally decided to search this error on Google. I found that in Flutter when a widget is deprecated the this error will display on screen. A article regarding to this topic on Stack Overflow helped me lot. You can read this article here.
So what we have to do next is, we have to start making flutter applications without the deprecated widgets and for Raised Button alternative you can use ElevatedButton widget. One more this the deprecated widgets will be removed in the next update of flutter. So avoid them if you can. Below is the screenshot of How the deprecated error looks like in flutter.