Widget iconOfAnonymousUsers = CircleAvatar(
radius: 100.0,
//backgroundColor: Colors.indigo[200],
backgroundColor: Colors.yellow[200],
child: Stack(
children: [
//Center(child: Icon(Icons.person_outline)),
Text("anonymous",
style: TextStyle(
fontSize: 30.0,
color: Colors.black,
)),
],
),
);
The above iconOfAnonymousUsers can have the const modifier,
so I thought it would be better to add it,
and when I added it.
const Widget iconOfAnonymousUsers = CircleAvatar(
radius: 100.0,
//backgroundColor: Colors.indigo[200],
backgroundColor: Colors.yellow[200],
child: Stack(
children: [
//Center(child: Icon(Icons.person_outline)),
Text("anonymous",
style: TextStyle(
fontSize: 30.0,
color: Colors.black,
)),
],
),
);
Then I got the following error.

I don't think there are any non-const components of iconOfAnonymousUsers, but are there any non-const components?
I'm not sure why the error is occurring.
I'm already getting an error in the above code, isn't Colors.yellow [200] a constant?
