Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter in vscode how to remove blue line

enter image description hereenter image description hereenter image description here

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

like image 600
Durjoy Roy Avatar asked Oct 07 '21 06:10

Durjoy Roy


People also ask

What does Blue Line mean VSCode?

It means you've modified that line since you last made a commit in version control. All reactions.

How do you do a flutter clean in VSCode?

You can activate the command by launching the command palette (View -> Command Palette) and running "Flutter Clean Architecture: New Feature". Or you can right click on the directory in which you'd like to create the feature and select the "New Feature" command from the context menu.


Video Answer


5 Answers

Comment this line at the start of the page

// ignore_for_file: prefer_const_constructors

Example:

here

like image 174
codelone Avatar answered Oct 17 '22 12:10

codelone


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.

like image 3
Hygison Brandao Avatar answered Oct 17 '22 12:10

Hygison Brandao


Press command+shift+p (open command pallete)
Then type Disable Error Squiggles.
And click on that Disable Error Squiggles.
like image 1
Jignesh Patel Avatar answered Oct 17 '22 14:10

Jignesh Patel


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.

like image 1
Kishan Dhankecha Avatar answered Oct 17 '22 14:10

Kishan Dhankecha


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

like image 1
Arif Maksum Avatar answered Oct 17 '22 13:10

Arif Maksum