this spell checker makes me feel sick to my stomach. i can't concentrate in my program. By the way, I don't use the extension spell checker.
I tried to disable all my extensions but nothing happened.
CodePudding user response:
This happens because of a pre-installed package called flutter_lints. Open your pubsec.yaml file and comment the flutter_lints : -
#flutter_lints: ^2.0.0 // add #(hashtag to comment)
Save the file and re-run your project.
CodePudding user response:
The Flutter linter is a tool that scans your code for potential problems and makes recommendations for fixes. Generally speaking, it's a good practice to have the linter active because it can aid in error detection and better code maintenance.
However, if you want to disable the linter for some reason, you can do so by adding the following line at the top of your Flutter file:
// ignore: some_lint_rule
You can also disable the linter for a specific block of code by wrapping it in a lint
comment.
For example:
/*lint
some_lint_rule: off
*/
// code that violates the some_lint_rule
/*lint
some_lint_rule: on
*/
Note: Remember that turning off the linter might cause problems with your code, so you should normally avoid doing so unless you have a strong reason.