Issue
Can someone tell me how to disable the warning underlines in my code? I have posted the picture below. The blue wiggly signs are a pain while writing more codes. I tried to disable the SDK Formatter from the extension settings but it didn't work for me.
Solution
You are missing const
keyword there.
void main() => runApp(
const MaterialApp(
home: Text("hello"),
),
);
Linting code is good practice. But it's totally up to you to lint the code. If you want to disable linting, remove this line in pubspec.yaml
,
flutter_lints: ^1.0.0 // remove this line
and finally delete the analysis_options.yaml
file in your project directory
Answered By - Shaan Mephobic Answer Checked By - Senaida (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.