flutter in vscode how to remove blue line

2,907

Solution 1

What you probably want is just to remove only the blue lines and nothing else, then find the file pubspec.yaml and remove or comment the line with flutter_lints. Save and Make sure to restart the application.

Solution 2

Comment this line at the start of the page

// ignore_for_file: prefer_const_constructors

Example:

here

Solution 3

remove flutter_lints: ^1.0.0 , its work for me. don't forget to pub get

Solution 4

Press command+shift+p (open command pallete)
Then type Disable Error Squiggles.
And click on that Disable Error Squiggles.

Solution 5

Rename Your file name to the login_page.dart.

This blue line shows the warning to us because of linter. There is a rule defined in the package that the file name must be lower_camel_case. This is because linter defines the bet practices.

Share:
2,907
Admin
Author by

Admin

Updated on January 01, 2023

Comments

  • Admin
    Admin over 1 year

    enter image description hereenter image description hereenter image description here

    I'm using Visual Studio Code how to remove this blue lines

  • Hans Kesting
    Hans Kesting over 2 years
    Unless those error squiggles are there to notify you of a problem in your code
  • Admin
    Admin over 2 years
    not working bro.
  • Admin
    Admin over 2 years
    yaa rename but The lines are still the same.
  • Kishan Dhankecha
    Kishan Dhankecha over 2 years
    In that case please provide the warning in questions and update your question.
  • Admin
    Admin over 2 years
    please check. qus update
  • Kishan Dhankecha
    Kishan Dhankecha over 2 years
    hover your mouse on the code with a blue underline you will see the warning message. or you can see your all the error and warning in Problems tab. Please provide that error
  • Admin
    Admin over 2 years
    Name source files using lowercase_with_underscores.dartfile_names
  • Admin
    Admin over 2 years
    see bro new image add.
  • Kishan Dhankecha
    Kishan Dhankecha over 2 years
    did you restarted your vscode?
  • Admin
    Admin over 2 years
    yes, but still same