skip to Main Content

enter image description hereThe teal colour highlighted in visual studio code on whole line in the background of code, which is annoying me and my eyes. How to remove the colour on entire line.

I tried in YouTube and googling it but couldn’t find answer. Please help me out

2

Answers


  1. enter image description hereIt looks like you have installed the ‘error lens’ extension in vs code, please uninstall it

    Login or Signup to reply.
  2. this is a dart analysis warning. either you clear the error by:

    1. using const constructor on the widget, on this case is the MaterialApp, since you don’t have any changed parameters on the widget:
    ...
      const MaterialApp(
        ...
      ),
    ...
    

    or,

    1. using VSCode’s Quick Fixes and ignoring the errors, like so:
      enter image description here
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search