uday
uday

Reputation: 3

How can I remove the blue under lines of the code they are very irritating

enter image description here

The blue underlines are making me lose attention towards my code can anyone help!!!!

Upvotes: -1

Views: 1073

Answers (1)

Arijeet
Arijeet

Reputation: 1213

Most of the blue lines indicate corrections or the proper way in which the code can be optimized.

In your case, the children of the widget indicates that it should be constant because you are not using any variables there.

Just use const keyword and the blue lines will disappear. However, if you are going to add some variables in your code later, an error will come because of that const keyword. Make sure to add const only where you are absolutely sure that the widget is going to be immutable.

Another fix can be hovering over the blue lines and ignoring them by commenting them out.

Upvotes: 1

Related Questions