skip to Main Content

enter image description here

The blue underlines are making me lose attention towards my code can anyone help!!!!

2

Answers


  1. Most of the blue lines indicate corrections or the proper way in which the code can be optimized.

    In your case, the children of the widget indicates that it should be constant because you are not using any variables there.

    Just use const keyword and the blue lines will disappear. However, if you are going to add some variables in your code later, an error will come because of that const keyword. Make sure to add const only where you are absolutely sure that the widget is going to be immutable.

    Another fix can be hovering over the blue lines and ignoring them by commenting them out.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search