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:
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 belower_camel_case
. This is becauselinter
defines the bet practices.
Author by
Admin
Updated on January 01, 2023Comments
-
Admin over 1 year
-
Hans Kesting over 2 yearsUnless those error squiggles are there to notify you of a problem in your code
-
Admin over 2 yearsnot working bro.
-
Admin over 2 yearsyaa rename but The lines are still the same.
-
Kishan Dhankecha over 2 yearsIn that case please provide the warning in questions and update your question.
-
Admin over 2 yearsplease check. qus update
-
Kishan Dhankecha over 2 yearshover 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 over 2 yearsName source files using
lowercase_with_underscores
.dartfile_names -
Admin over 2 yearssee bro new image add.
-
Kishan Dhankecha over 2 yearsdid you restarted your vscode?
-
Admin over 2 yearsyes, but still same