Up until today I haven't seen this dart code suggestions. I am happy to follow best practise, but to be honest, this makes no sense showing up in a stateful widget with no constructor. I thought it might be related to the @immutable annotation, but it doesn't seem to be and the dart documentation doesn't really help.
Dart Docs https://dart-lang.github.io/linter/lints/prefer_const_constructors.html
Code Suggestions in VSCode
Prefer const literals as parameters of constructors on @immutable classes.dart. || Prefer const with constant constructors
Question: Is this something I need to care about or has my plugin on VSCode gone haywire?
Code sample where this shows for all widgets.
Column(
children: [
Container(
margin: EdgeInsets.only(left: 20, right: 20),
height: 50,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(30),
),
color: Colors.black,
),
child: Center(
child: Text(
'Create Account',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.w600,
fontSize: 19),
),
),
),
SizedBox(
height: 20,
)
Screen for completeness