我想在flutter中设置背景Colors.yellow[700],但是当我添加符号“[]”或Colors.yellow.shade600时,但我无法设置背景的值。它显示错误并且错误是
The argument type 'MaterialColor' can't be assigned to the parameter type 'Paint'
android visual-studio dart flutter
android ×1
dart ×1
flutter ×1
visual-studio ×1