How do i remove these lines, those are quite unpleasant to look at.
2
Those line are suggestions to improve performance or use of better suitable widgets for the case.
When you hover your mouse on it OR press ctrl/cmd + . when the cursor is on them, it must show the issue/suggestion.
ctrl/cmd + .
In that particular case it’s probably suggesting that you could use const on those widgets (i.e: const TextField() ) to improve performance
const
const TextField()
the yellow lines show that your value in your code is static and not in variable. ex: your label text is "E-mail address". to solve this, u can just put const at the beginning of the widget. in your case, try put const before the word ‘Column’
Click here to cancel reply.
2
Answers
Those line are suggestions to improve performance or use of better suitable widgets for the case.
When you hover your mouse on it OR press
ctrl/cmd + .
when the cursor is on them, it must show the issue/suggestion.In that particular case it’s probably suggesting that you could use
const
on those widgets (i.e:const TextField()
) to improve performancethe yellow lines show that your value in your code is static and not in variable. ex: your label text is "E-mail address". to solve this, u can just put const at the beginning of the widget. in your case, try put const before the word ‘Column’