I changed my SDK version for flutter to min , so that I can fix my code for null safety.
There is one issue that I don't understand, this line produces the following error:
The argument type 'Color?' can't be assigned to the parameter type 'Color'
border: Border.all(color: Colors.grey[300], width: 1),
but if I change Colors.grey[300] with whatever value that doesn't use [], it will work,
so Colors.grey works perfectly fine.
What should I change here to keep using grey[300]?