The blue underlines are making me lose attention towards my code can anyone help!!!!
Asked
Active
Viewed 320 times
0
-
Do you see any information about the source of the underlines when you hover/click the lines/lightbulb? – JBallin Sep 17 '22 at 05:16
-
I think there some extension which causing this issue i.e. - spell checker – Vishal Beep Sep 17 '22 at 06:13
-
Does this answer your question? [flutter in vscode how to remove blue line](https://stackoverflow.com/questions/69476578/flutter-in-vscode-how-to-remove-blue-line) – Anand Sep 17 '22 at 07:34
-
do you really have to edit 400+ files for the next commit – rioV8 Sep 17 '22 at 10:48
2 Answers
1
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.

Arijeet
- 935
- 5
- 19
0
Your question already has answer in the below links.

Anand
- 4,355
- 2
- 35
- 45