The named parameter 'colors' isn't defined.flutter
Try to restart the Analysis Dart Server.
Ctrl + Shift + P on Windows, Cmd + Shift + P on Macos opens the command palette if you use VS Code.
Then run Dart: Restart Analysis Server.
Clean your project by pressing flutter clean command.
Close the IDE and restart it. And this issue will be solved